Code

Use configured gotomasses storeage file
authorhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Aug 2007 10:35:17 +0000 (10:35 +0000)
committerhickert <hickert@594d385d-05f5-0310-b6e9-bd551577e9d8>
Wed, 22 Aug 2007 10:35:17 +0000 (10:35 +0000)
git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7109 594d385d-05f5-0310-b6e9-bd551577e9d8

plugins/addons/gotomasses/class_gotomasses.inc

index 51822cf1761259ffbeb0d410e48cfc5b5c52cd8d..1accb6bf2476f585eba1feda71bb0d3097072280 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();
   }