diff options
Diffstat (limited to 'inc/plugin.php')
-rw-r--r-- | inc/plugin.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/inc/plugin.php b/inc/plugin.php index 763b57bf2..33cb06c87 100644 --- a/inc/plugin.php +++ b/inc/plugin.php @@ -215,6 +215,15 @@ class DokuWiki_Plugin { return p_render($format, p_get_instructions($text),$info); } + /** + * 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; + } + // deprecated functions function plugin_localFN($id) { return $this->localFN($id); } function plugin_locale_xhtml($id) { return $this->locale_xhtml($id); } |