From 96aee585f55d96dd436d8c39df47422e60e5cbb0 Mon Sep 17 00:00:00 2001 From: hickert Date: Thu, 26 Feb 2009 09:40:05 +0000 Subject: [PATCH] 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 --- gosa-core/include/class_acl.inc | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) 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 ". -- 2.30.2
"._("Object").": $name
". "\n ". "\n ". "\n