diff options
author | Christopher Smith <chris@jalakai.co.uk> | 2013-02-17 15:47:42 +0000 |
---|---|---|
committer | Christopher Smith <chris@jalakai.co.uk> | 2013-02-17 15:47:42 +0000 |
commit | 0fc50f81064736071e053d874b60a990fd1af8c2 (patch) | |
tree | 00cdfab2b24e96088577a115ecfa2cda79c9cd34 /lib | |
parent | 4005b0809260fbd36cb8652c7d726a5ee417c6f6 (diff) | |
download | rpg-0fc50f81064736071e053d874b60a990fd1af8c2.tar.gz rpg-0fc50f81064736071e053d874b60a990fd1af8c2.tar.bz2 |
add property to show disabled plugins, set it to false (to hide by default)
Diffstat (limited to 'lib')
-rw-r--r-- | lib/plugins/config/settings/config.class.php | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/plugins/config/settings/config.class.php b/lib/plugins/config/settings/config.class.php index 5b81be782..46e27654b 100644 --- a/lib/plugins/config/settings/config.class.php +++ b/lib/plugins/config/settings/config.class.php @@ -20,6 +20,7 @@ if (!class_exists('configuration')) { var $_metadata = array(); // holds metadata describing the settings var $setting = array(); // array of setting objects var $locked = false; // configuration is considered locked if it can't be updated + var $show_disabled_plugins = false; // configuration filenames var $_default_files = array(); @@ -262,7 +263,7 @@ if (!class_exists('configuration')) { function get_plugin_list() { if (is_null($this->_plugin_list)) { - $list = plugin_list('',true); // all plugins, including disabled ones + $list = plugin_list('',$this->show_disabled_plugins); // remove this plugin from the list $idx = array_search('config',$list); |