summaryrefslogtreecommitdiff
path: root/inc/load.php
diff options
context:
space:
mode:
Diffstat (limited to 'inc/load.php')
-rw-r--r--inc/load.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/inc/load.php b/inc/load.php
index b676518e7..b8a279523 100644
--- a/inc/load.php
+++ b/inc/load.php
@@ -95,13 +95,13 @@ function load_autoload($name){
}
// Plugin loading
- if(preg_match('/^(helper|syntax|action|admin|renderer|remote)_plugin_([^_]+)(?:_([^_]+))?$/',
+ if(preg_match('/^(helper|syntax|action|admin|renderer|remote)_plugin_('.DOKU_PLUGIN_NAME_REGEX.')(?:_([^_]+))?$/',
$name, $m)) {
// try to load the wanted plugin file
$c = ((count($m) === 4) ? "/{$m[3]}" : '');
$plg = DOKU_PLUGIN . "{$m[2]}/{$m[1]}$c.php";
if(@file_exists($plg)){
- include DOKU_PLUGIN . "{$m[2]}/{$m[1]}$c.php";
+ include_once DOKU_PLUGIN . "{$m[2]}/{$m[1]}$c.php";
}
return;
}