From: hickert Date: Wed, 23 Jan 2008 10:13:34 +0000 (+0000) Subject: Only load those services whose classes are available. X-Git-Url: https://git.tokkee.org/?a=commitdiff_plain;h=dcbff3621eeda53465a5cdaead7241f167c4546b;p=gosa.git Only load those services whose classes are available. git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@8559 594d385d-05f5-0310-b6e9-bd551577e9d8 --- diff --git a/gosa-plugins/systems/admin/systems/class_serverService.inc b/gosa-plugins/systems/admin/systems/class_serverService.inc index 338052b7e..eefcc5a86 100644 --- a/gosa-plugins/systems/admin/systems/class_serverService.inc +++ b/gosa-plugins/systems/admin/systems/class_serverService.inc @@ -37,15 +37,21 @@ class ServerService extends plugin plugin::plugin($config); $this->dn= $dn; foreach ($config->data['TABS']['SERVERSERVICE'] as $plug){ - $name= $plug['CLASS']; - $this->plugin_names[]= $name; - $this->plugins[$name]= new $name($config, $dn); - - /* Capture all service objectClases, necessary for acl handling */ - if(isset($this->plugins[$name]->objectclasses)){ - foreach($this->plugins[$name]->objectclasses as $oc){ - $this->objectclasses[] = $oc; + + if(class_available($plug['CLASS'])){ + + $name= $plug['CLASS']; + $this->plugin_names[]= $name; + $this->plugins[$name]= new $name($config, $dn); + + /* Capture all service objectClases, necessary for acl handling */ + if(isset($this->plugins[$name]->objectclasses)){ + foreach($this->plugins[$name]->objectclasses as $oc){ + $this->objectclasses[] = $oc; + } } + }else{ + echo "missing class ".$plug['CLASS']; } } $this->divList = new divListSystemService($config,$this);