diff options
author | chris <chris@jalakai.co.uk> | 2006-10-27 02:41:17 +0200 |
---|---|---|
committer | chris <chris@jalakai.co.uk> | 2006-10-27 02:41:17 +0200 |
commit | 173f278305be97fd6d51f90472add11514b5aa29 (patch) | |
tree | 30034a67592b179c7590424408e2a9cb60b7a9ec /lib/plugins | |
parent | 9475d4adbf64eb170019a2f9bb8bc4c346c7ba91 (diff) | |
download | rpg-173f278305be97fd6d51f90472add11514b5aa29.tar.gz rpg-173f278305be97fd6d51f90472add11514b5aa29.tar.bz2 |
fix bug#956 (also sp. in pluginutils)
darcs-hash:20061027004117-9b6ab-b7eda08e246e942a1ca4841b94abeda4c2ed722c.gz
Diffstat (limited to 'lib/plugins')
-rw-r--r-- | lib/plugins/syntax.php | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/lib/plugins/syntax.php b/lib/plugins/syntax.php index 2a4d1e0ff..ccf657720 100644 --- a/lib/plugins/syntax.php +++ b/lib/plugins/syntax.php @@ -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; } |