Code

Updated usage of registration classes
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 8 Nov 2010 06:32:25 +0000 (06:32 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Mon, 8 Nov 2010 06:32:25 +0000 (06:32 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@20201 594d385d-05f5-0310-b6e9-bd551577e9d8

gosa-core/plugins/generic/dashBoard/Register/class_RegistrationDialog.inc
gosa-core/plugins/generic/dashBoard/class_dashBoard.inc

index 86e9046c873a8b3648aabc8bda4da0a25552e330..189d4f71764da50cf51ecaea8263600e4402f7fc 100644 (file)
@@ -18,7 +18,6 @@ class RegistrationDialog extends plugin
     function __construct(&$config)
     {
         $this->config = $config;    
-        $this->isRegistered = GOsaRegistration::isRegistered($this->config);
 
         foreach($this->attrs as $attr) $this->values[$attr] = "";
 
index 7a446679485504bceba08ef8c634866209c25da8..b0e8e7f4630d887a5537fd451b8e7bae0c948f5e 100644 (file)
@@ -55,7 +55,7 @@ class dashBoard extends plugin
     {
         plugin::save_object();
         
-        if(!$this->registered) $this->RegistrationDialog->save_object();
+        if(!$this->config->registration->isRegistered()) $this->RegistrationDialog->save_object();
 
         $this->dbPluginStatus->save_object();
         $this->dbChannelStatus->save_object();