summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 41ca4a0)
raw | patch | inline | side by side (parent: 41ca4a0)
author | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 10 May 2010 11:19:29 +0000 (11:19 +0000) | ||
committer | hickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8> | |
Mon, 10 May 2010 11:19:29 +0000 (11:19 +0000) |
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@18203 594d385d-05f5-0310-b6e9-bd551577e9d8
gosa-plugins/fai/admin/fai/class_faiManagement.inc | patch | blob | history |
diff --git a/gosa-plugins/fai/admin/fai/class_faiManagement.inc b/gosa-plugins/fai/admin/fai/class_faiManagement.inc
index d64658b9f7c5a1960b7ac8bba423ab42699eca20..9d9e295b395c25caf8028a9684137251ed41a50c 100644 (file)
/* Check if we have a post remove method configured
* else skip this operation. (Skip:Button in the ui should be disabled in this case too)
*/
- if("" != $this->config->search("faiManagement", "POSTREMOVE",array('menu','tabs'))){
+ if("" != $this->config->get_cfg_value("faiManagement","postremove")){
/* Load permissions for selected 'dn' and check if
we're allowed to remove this 'dn' */
if(preg_match("/d/",$this->ui->get_permissions($this->acl_base,"fai/faiManagement"))){
/* Check if we have a post remove method configured
* else skip this operation. (Skip:Button in the ui should be disabled in this case too)
*/
- if("" != $this->config->search("faiManagement", "POSTREMOVE",array('menu','tabs'))){
+ if("" != $this->config->get_cfg_value("faiManagement","postremove")){
if(!isset($_POST['release_hidden']) || base64_decode($_POST['release_hidden']) != $this->fai_release){
msg_dialog::display(_("Warning"),_("Release remove aborted because the release name check failed!"));
*/
function createBranch()
{
- if($this->config->search("faiManagement", "POSTCREATE",array('menu','tabs')) == ""){
+ if($this->config->get_cfg_value("faiManagement", "postcreate") == ""){
msg_dialog::display(_("Configuration"), msgPool::cmdnotfound("POSTCREATE", get_class()), ERROR_DIALOG);
}elseif(!preg_match("/c/",$this->ui->get_permissions($this->acl_base,"fai/faiManagement"))){
msg_dialog::display(_("Permission error"), msgPool::permCreate(_("Branch")), ERROR_DIALOG);
*/
function createFreeze()
{
- if($this->config->search("faiManagement", "POSTCREATE",array('menu','tabs')) == ""){
+ if($this->config->get_cfg_value("faiManagement", "postcreate") == ""){
msg_dialog::display(_("Configuration"), msgPool::cmdnotfound("POSTCREATE", get_class()), ERROR_DIALOG);
}elseif(!preg_match("/c/",$this->ui->get_permissions($this->acl_base,"fai/faiManagement"))){
msg_dialog::display(_("Permission error"), msgPool::permCreate(_("Branch")), ERROR_DIALOG);
$headpage->setBase($this->fai_release);
$headpage->update();
$smarty = get_smarty();
- $r = $this->config->search("faiManagement", "POSTREMOVE",array('menu','tabs'));
- $c = $this->config->search("faiManagement", "POSTCREATE",array('menu','tabs'));
+ $r = $this->config->get_cfg_value("faiManagement", "postremove");
+ $c = $this->config->get_cfg_value("faiManagement", "postcreate");
$smarty->assign("allow_create", $c);
$smarty->assign("allow_remove", $r);
$smarty->assign("RELEASE", $this->releaseSelector->render());