summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 2c7091b)
raw | patch | inline | side by side (parent: 2c7091b)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 16 Apr 2008 07:59:25 +0000 (07:59 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Wed, 16 Apr 2008 07:59:25 +0000 (07:59 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@10491 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc | patch | blob | history | |
gosa-plugins/goto/admin/mimetypes/class_mimetypeManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc b/gosa-plugins/goto/admin/mimetypes/class_mimetypeGeneric.inc
index 71121377c2bbea1cc80d7152eaec4575c1bc344b..c5d52cf27d5a8d639de01f0ab5153e2b6d4d2414 100644 (file)
var $DivApps = NULL;
var $DivEApps = NULL;
- /* Mime type release mode */
- var $isReleaseMimeType = false;
-
/* These vars will be copied too, if you use copy&paste mode */
var $CopyPasteVars = array("use_gotoMimeFilePattern","use_gotoMimeApplication","use_gotoMimeEmbeddedApplication","iconData",
"gotoMimeLeftClickAction_I","gotoMimeLeftClickAction_E","gotoMimeLeftClickAction_Q","use_gotoMimeIcon");
}
}
- /* Check if release Management is enabled */
- $tmp = $this->config->search("faiManagement", "CLASS",array('menu','tabs'));
- if(!empty($tmp)) {
- $this->isReleaseMimeType= true;
- }
-
/* Set base */
if ($this->dn == "new"){
if(session::is_set('CurrentMainBase')){
}
$smarty->assign("bases", $this->get_allowed_bases());
$smarty->assign("base_select", $this->base);
- $smarty->assign("isReleaseMimeType", $this->isReleaseMimeType);
+ $smarty->assign("isReleaseMimeType", $this->is_release());
$smarty->assign("gotoMimeFilePatterns", $DivPatterns->DrawList());
$smarty->assign("gotoMimeApplications", $DivApps->DrawList());
$smarty->assign("gotoMimeEmbeddedApplications", $DivEApps->DrawList());
$this->base = $base_tmp;
/* Only save base if we are not in release mode */
- if(!$this->isReleaseMimeType){
+ if(!$this->is_release()){
/* Set new base if allowed */
$tmp = $this->get_allowed_bases();
if($this->is_release()){
$base = $this->parent->parent->mime_release;
}else{
- $base = $this->base;
+ $base = get_ou("mimetypeou").$this->base;
}
$ldap->ls("(&(objectClass=gotoMimeType)(cn=".$this->cn."))",$base,array("cn"));
diff --git a/gosa-plugins/goto/admin/mimetypes/class_mimetypeManagement.inc b/gosa-plugins/goto/admin/mimetypes/class_mimetypeManagement.inc
index 54a04b55b66633741da4bdc457ae13abe3f4b46d..94b04156914cae602e69af069683bcad1ed8688d 100644 (file)
}
/* Lock the current entry, so nobody will edit it during deletion */
- $smarty->assign("info", msgPool::deleteInfo($dns_names,_("Mime type")));
+ $smarty->assign("intro", msgPool::deleteInfo($dns_names,_("Mime type")));
$smarty->assign("multiple", true);
return($smarty->fetch(get_template_path('remove.tpl', TRUE)));
}