From: hickert Date: Thu, 26 Feb 2009 09:40:05 +0000 (+0000) Subject: Fixed ACL listing for presto based browser, like Opera X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=96aee585f55d96dd436d8c39df47422e60e5cbb0;p=gosa.git Fixed ACL listing for presto based browser, like Opera git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@13461 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-core/include/class_acl.inc b/gosa-core/include/class_acl.inc index a1809b044..c3c411709 100644 --- a/gosa-core/include/class_acl.inc +++ b/gosa-core/include/class_acl.inc @@ -722,7 +722,9 @@ class acl extends plugin /* Object header */ $tname= preg_replace("/[^a-z0-9]/i","_",$name); if(session::global_get('js')) { - if(isset($_SERVER['HTTP_USER_AGENT']) && preg_match("/gecko/i",$_SERVER['HTTP_USER_AGENT'])) { + if(isset($_SERVER['HTTP_USER_AGENT']) && + (preg_match("/gecko/i",$_SERVER['HTTP_USER_AGENT'])) || + (preg_match("/presto/i",$_SERVER['HTTP_USER_AGENT']))) { $display.= "\n". "\n ". "\n ". @@ -770,9 +772,9 @@ class acl extends plugin /* Walk through the list of attributes */ $cnt= 1; $splist= $plist[preg_replace('%^.*/%', '', $key)]['plProvidedAcls']; -# asort($splist); if(session::global_get('js')) { - if(isset($_SERVER['HTTP_USER_AGENT']) && preg_match("/gecko/i",$_SERVER['HTTP_USER_AGENT'])) { + if(isset($_SERVER['HTTP_USER_AGENT']) && + (preg_match("/gecko/i",$_SERVER['HTTP_USER_AGENT'])) || (preg_match("/presto/i",$_SERVER['HTTP_USER_AGENT']))) { $display.= "\n ". "\n ".
"._("Object").": $name
". "\n ". "\n ". "\n