X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=include%2Fclass_pluglist.inc;h=f296fc621905ec3a5a1e19b2095d1cc6cf7df58b;hb=5939edc5d38843b634939eaa11e7df748eaf60ff;hp=89d55749e6da60b86c57542735e25a00d87ef658;hpb=2835d7267d670cd989a1cf753770cea823b8b67e;p=gosa.git diff --git a/include/class_pluglist.inc b/include/class_pluglist.inc index 89d55749e..f296fc621 100644 --- a/include/class_pluglist.inc +++ b/include/class_pluglist.inc @@ -70,7 +70,7 @@ class pluglist { /* Look through ACL's */ foreach($this->ui->subtreeACL as $arr){ foreach($arr as $value){ - if ($value == ':all' || preg_match("/[,:]$modname#/", $value)){ + if ($value == ':all' || preg_match("/[,:]".normalizePreg($modname)."#/", $value)){ if (!preg_match('/^!/', $value)){ return (TRUE); } @@ -113,7 +113,7 @@ class pluglist { /* Read information from class variable */ if (!isset($info['CLASS'])){ - print_red(_("Your gosa.conf information has changed partly. Please convert it using the contributed script fix_config.sh!")); + print_red(sprintf(_("Your %s information has changed partly. Please convert it using the contributed script fix_config.sh!"),CONFIG_FILE)); echo $_SESSION['errors']; exit; } @@ -135,13 +135,24 @@ class pluglist { if ($this->check_access($info['ACL'])){ $this->allowed_plug_ids[$index]=$index; $entries= $entries."
\n"; + } else { + $entries.= "". _($plHeadline)."\n"; + } /* Generate icon entry with description */ - $this->menuparts[_($headline)][]= ''._($plHeadline).' '._($plDescription).' |
';
+ if($_SESSION['js']){
+ $current.= ''._($plHeadline).' '._($plDescription); + } else { + $current.= ''._($plHeadline).' '._($plDescription).''; + } + $current.= ' |