From: psc Date: Wed, 18 Mar 2009 11:39:17 +0000 (+0000) Subject: Remove the tabs::tabs call from tabs_printers.inc because X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=9cf223b388c0e4b4834d59d06592e3e46087d055;p=gosa.git Remove the tabs::tabs call from tabs_printers.inc because it does not work (properly) in this special case as the printGeneric class takes more arguments as usual. Instead set $this->acl_category manually to avoid access control problems. (Fixes PHP errors at various places; Trac #2246) git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.6-lhm@13551 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/trunk/gosa-plugins/goto/admin/systems/goto/tabs_printers.inc b/trunk/gosa-plugins/goto/admin/systems/goto/tabs_printers.inc index eab3b256c..059f03c1d 100644 --- a/trunk/gosa-plugins/goto/admin/systems/goto/tabs_printers.inc +++ b/trunk/gosa-plugins/goto/admin/systems/goto/tabs_printers.inc @@ -5,14 +5,15 @@ class printtabs extends tabs function printtabs($config, $data, $dn,$category) { - tabs::tabs($config, $data, $dn,$category); - /* Save dn */ $this->dn= $dn; $this->config= $config; $baseobject= NULL; + /* Set acl_category */ + $this->acl_category = $category; + foreach ($data as $tab){ if(!class_available($tab['CLASS'])) continue;