diff options
author | Jan Schumann <js@schumann-it.com> | 2012-01-02 21:35:09 +0100 |
---|---|---|
committer | Jan Schumann <js@schumann-it.com> | 2012-01-02 21:35:09 +0100 |
commit | eb274bf3eeb34f70031e220941ee1340c75ac098 (patch) | |
tree | c38751212ea672eda5b847ebb0b5805aafcb44a1 | |
parent | eb2f7e5e56a00f69a13722cc4297a6d6a61bd00f (diff) | |
download | rpg-eb274bf3eeb34f70031e220941ee1340c75ac098.tar.gz rpg-eb274bf3eeb34f70031e220941ee1340c75ac098.tar.bz2 |
added plugin type 'auth'
-rw-r--r-- | inc/init.php | 2 | ||||
-rw-r--r-- | inc/load.php | 2 |
2 files changed, 2 insertions, 2 deletions
diff --git a/inc/init.php b/inc/init.php index b3acf2e33..1d3588942 100644 --- a/inc/init.php +++ b/inc/init.php @@ -200,7 +200,7 @@ init_paths(); init_files(); // setup plugin controller class (can be overwritten in preload.php) -$plugin_types = array('admin','syntax','action','renderer', 'helper'); +$plugin_types = array('auth', 'admin','syntax','action','renderer', 'helper'); global $plugin_controller_class, $plugin_controller; if (empty($plugin_controller_class)) $plugin_controller_class = 'Doku_Plugin_Controller'; diff --git a/inc/load.php b/inc/load.php index d30397f6e..36de5b69a 100644 --- a/inc/load.php +++ b/inc/load.php @@ -89,7 +89,7 @@ function load_autoload($name){ } // Plugin loading - if(preg_match('/^(helper|syntax|action|admin|renderer)_plugin_([^_]+)(?:_([^_]+))?$/', + if(preg_match('/^(auth|helper|syntax|action|admin|renderer)_plugin_([^_]+)(?:_([^_]+))?$/', $name, $m)) { //try to load the wanted plugin file // include, but be silent. Maybe some other autoloader has an idea |