From b2a9367f30a90d3feadf71c82ca5fe2880575bfa Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 22 Aug 2007 10:35:17 +0000 Subject: [PATCH] Use configured gotomasses storeage file git-svn-id: https://oss.gonicus.de/repositories/gosa/trunk@7109 594d385d-05f5-0310-b6e9-bd551577e9d8 --- plugins/addons/gotomasses/class_gotomasses.inc | 9 +++++++-- 1 file changed, 7 insertions(+), 2 deletions(-) diff --git a/plugins/addons/gotomasses/class_gotomasses.inc b/plugins/addons/gotomasses/class_gotomasses.inc index 51822cf17..1accb6bf2 100644 --- a/plugins/addons/gotomasses/class_gotomasses.inc +++ b/plugins/addons/gotomasses/class_gotomasses.inc @@ -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(); } -- 2.30.2