diff options
author | Michael Hamann <michael@content-space.de> | 2012-09-10 12:40:01 +0200 |
---|---|---|
committer | Michael Hamann <michael@content-space.de> | 2012-09-10 12:40:01 +0200 |
commit | 7521090b08245f81410c713f00d3d7fbaf1afda6 (patch) | |
tree | 465c3f2854ac868bca6bcb6651e2eb218704eb2f /inc/load.php | |
parent | 30c1351e814dcc13497a61f65fa05a0901d5436a (diff) | |
download | rpg-7521090b08245f81410c713f00d3d7fbaf1afda6.tar.gz rpg-7521090b08245f81410c713f00d3d7fbaf1afda6.tar.bz2 |
Move plugin name regex to a constant as suggested by @glensc
Diffstat (limited to 'inc/load.php')
-rw-r--r-- | inc/load.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/inc/load.php b/inc/load.php index ddd12b546..b8a279523 100644 --- a/inc/load.php +++ b/inc/load.php @@ -95,7 +95,7 @@ function load_autoload($name){ } // Plugin loading - if(preg_match('/^(helper|syntax|action|admin|renderer|remote)_plugin_([a-zA-Z0-9\x7f-\xff]+)(?:_([^_]+))?$/', + 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]}" : ''); |