index c11a7dbbfcfb596362cf685c938e12dd31b3db00..e50de7e22e022610ba36d91feb7e65cc632abcb2 100644 (file)
}
if (!session::global_is_set('size_limit')){
- session::global_set('size_limit',$this->current['LDAPSIZELIMIT']);
- session::global_set('size_ignore',$this->current['LDAPSIZEIGNORE']);
+ session::global_set('size_limit', $this->get_cfg_value('core', 'ldapSizeLimit'));
+ session::global_set('size_ignore', $this->boolValueIsTrue('core', 'ldapSizeIgnore'));
}
}
}
- /*! Search for a configuration setting in different categories
+ /*! Outdated - try to use pluginEnabled, boolValueIsTrue or get_cfg_value instead.
+ *
+ * (Search for a configuration setting in different categories
*
* Searches for the value of a given key in the configuration data.
* Optionally the list of categories to search (tabs, main, locations) can
* \code
* $postcmd = $this->config->search(get_class($this), "POSTCOMMAND", array("menu", "tabs"));
* \endcode
+ * )
*
* */
function search($class, $value, $categories= "")
return ("");
}
+
+ /*! \brief Check whether a plugin is activated or not
+ */
+ function pluginEnabled($class){
+ $tmp = $this->search($class, "CLASS",array('menu','tabs'));
+ return(!empty($tmp));
+ }
+
/*! \brief Get a configuration value from the config
*