Skip to content
Snippets Groups Projects
Commit 173f2783 authored by chris's avatar chris
Browse files

fix bug#956 (also sp. in pluginutils)

darcs-hash:20061027004117-9b6ab-b7eda08e246e942a1ca4841b94abeda4c2ed722c.gz
parent 9475d4ad
No related branches found
No related tags found
No related merge requests found
......@@ -82,7 +82,7 @@ function &plugin_load($type,$name){
}
}
//construct class and instanciate
//construct class and instantiate
$class = $type.'_plugin_'.$name;
if (!class_exists($class)) return null;
......
......@@ -133,8 +133,11 @@ class DokuWiki_Syntax_Plugin extends Doku_Parser_Mode {
foreach($allowedModeTypes as $mt) {
$this->allowedModes = array_merge($this->allowedModes, $PARSER_MODES[$mt]);
}
unset($this->allowedModes[array_search(substr(get_class($this), 7), $this->allowedModes)]);
$idx = array_search(substr(get_class($this), 7), $this->allowedModes);
if ($idx !== false) {
unset($this->allowedModes[$idx]);
}
$this->allowedModesSetup = true;
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment