summaryrefslogtreecommitdiff
path: root/lib/plugins/syntax.php
diff options
context:
space:
mode:
authorAdrian Lang <lang@cosmocode.de>2010-03-29 12:00:30 +0200
committerAdrian Lang <lang@cosmocode.de>2010-03-29 12:37:05 +0200
commitf6ec8df813b28547ca3b04bb39f0ce670a6bb990 (patch)
tree01cfd7c927495421861eef551b94b8653ca65218 /lib/plugins/syntax.php
parentea6dfbca91f6afe89ff631ac28eae023bcc52853 (diff)
downloadrpg-f6ec8df813b28547ca3b04bb39f0ce670a6bb990.tar.gz
rpg-f6ec8df813b28547ca3b04bb39f0ce670a6bb990.tar.bz2
Allow plugins to specify that they have to be instantiated
Plugins may return false in isSingleton to let plugin_load return a new instance every time it is called. Renderer plugins are not loaded with $new set to true, but instead specify themself that they are not singletons. This behaviour allows the odt renderer to keep working (see #1598).
Diffstat (limited to 'lib/plugins/syntax.php')
-rw-r--r--lib/plugins/syntax.php8
1 files changed, 0 insertions, 8 deletions
diff --git a/lib/plugins/syntax.php b/lib/plugins/syntax.php
index 601b5591e..f7b64d8c0 100644
--- a/lib/plugins/syntax.php
+++ b/lib/plugins/syntax.php
@@ -266,13 +266,5 @@ class DokuWiki_Syntax_Plugin extends Doku_Parser_Mode {
return $conf;
}
- /**
- * Allow the plugin to prevent DokuWiki creating a second instance of itself
- *
- * @return bool true if the plugin can not be instantiated more than once
- */
- function isSingleton() {
- return false;
- }
}
//Setup VIM: ex: et ts=4 enc=utf-8 :