diff options
author | Andreas Gohr <andi@splitbrain.org> | 2014-01-07 19:35:57 +0100 |
---|---|---|
committer | Andreas Gohr <andi@splitbrain.org> | 2014-01-07 19:35:57 +0100 |
commit | 5a3e1f53b18728d500b3505f4fbd8c78848120e0 (patch) | |
tree | 5bd3c765891973fe1d65f86e67c557cd8cf20b11 /lib | |
parent | 72d89f96f31af5c92f96fa16f0d1adf15c0bf4e8 (diff) | |
download | rpg-5a3e1f53b18728d500b3505f4fbd8c78848120e0.tar.gz rpg-5a3e1f53b18728d500b3505f4fbd8c78848120e0.tar.bz2 |
reintroduce a tiny bit of duplication
This reads some duplication in the from of haveing a Doku_Parser_Mode
and Doku_Parser_Mode_Plugin class which are basically the same but only
the latter extends DokuWiki_Plugin. This avoids the performance/RAM
problems mentioned in my previous commit. An interface keeps both
logically together.
With PHP 5.4 further deduplication could be done via Traits.
Diffstat (limited to 'lib')
-rw-r--r-- | lib/plugins/syntax.php | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/plugins/syntax.php b/lib/plugins/syntax.php index bc2c6447c..7ab9c30e1 100644 --- a/lib/plugins/syntax.php +++ b/lib/plugins/syntax.php @@ -12,7 +12,7 @@ if(!defined('DOKU_INC')) die(); * All DokuWiki plugins to extend the parser/rendering mechanism * need to inherit from this class */ -class DokuWiki_Syntax_Plugin extends Doku_Parser_Mode { +class DokuWiki_Syntax_Plugin extends Doku_Parser_Mode_Plugin { var $allowedModesSetup = false; |