enabled remote as plugintype

This commit is contained in:
Dominik Eckelmann 2011-11-19 14:40:11 +01:00
parent 2302fb8dc7
commit a4e0e797f6
2 changed files with 2 additions and 2 deletions

View File

@ -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('admin','syntax','action','renderer', 'helper','remote');
global $plugin_controller_class, $plugin_controller;
if (empty($plugin_controller_class)) $plugin_controller_class = 'Doku_Plugin_Controller';

View File

@ -89,7 +89,7 @@ function load_autoload($name){
}
// Plugin loading
if(preg_match('/^(helper|syntax|action|admin|renderer)_plugin_([^_]+)(?:_([^_]+))?$/',
if(preg_match('/^(helper|syntax|action|admin|renderer|remote)_plugin_([^_]+)(?:_([^_]+))?$/',
$name, $m)) {
//try to load the wanted plugin file
// include, but be silent. Maybe some other autoloader has an idea