Code

Use configured gotomasses path if specified
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Aug 2007 10:34:57 +0000 (10:34 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Aug 2007 10:34:57 +0000 (10:34 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7108 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/gotomasses/class_gotomasses.inc

index 9a20262b5e3cf504eefe1c96a423ef4dd131aaf6..6ce1eb3cf8eab86aecc739ec5473b8d57fa8c8ef 100644 (file)
@@ -21,11 +21,16 @@ class gotomasses extends plugin
 
   function gotomasses($config, $dn= NULL)
   {
+    /* Include config object */
+    $this->config= $config;
+
     /* Define source file */
     $this->data_file = CONFIG_DIR."/gotomasses_machines";
+    $file = search_config($this->config->data['MENU'], "gotomasses", "STORAGE_FILE");
+    if(!empty($file)){
+      $this->data_file = $file;
+    }
   
-    /* Include config object */
-    $this->config= $config;
     $this->load_gotomasses_data();
   }