From 56f48168b191c4de69655809f0bb11dd1f3ddba4 Mon Sep 17 00:00:00 2001 From: hickert Date: Wed, 22 Aug 2007 10:34:57 +0000 Subject: [PATCH] Use configured gotomasses path if specified git-svn-id: https://oss.gonicus.de/repositories/gosa/branches/2.5@7108 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 9a20262b5..6ce1eb3cf 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