From 3d2785158a81d228f8e0f6d859dbe896630c2afe Mon Sep 17 00:00:00 2001 From: carstenklapp Date: Mon, 4 Nov 2002 03:15:59 +0000 Subject: [PATCH] Allow plugins to override how cruft in plugin args are handled (see PhpHighlight plugin). There may be a better way to do this... git-svn-id: svn://svn.code.sf.net/p/phpwiki/code/trunk@2407 96ab9672-09ca-45d6-a79d-3d69d39ca109 --- lib/WikiPlugin.php | 10 +++++++--- 1 file changed, 7 insertions(+), 3 deletions(-) diff --git a/lib/WikiPlugin.php b/lib/WikiPlugin.php index 305fd5b5a..cd44811f8 100644 --- a/lib/WikiPlugin.php +++ b/lib/WikiPlugin.php @@ -1,5 +1,5 @@ handle_plugin_args_cruft($argstr, $args); } return array($args, $defaults); } + /* A plugin can override this function to define how any remaining text is handled */ + function handle_plugin_args_cruft($argstr, $args) { + trigger_error(sprintf(_("trailing cruft in plugin args: '%s'"), + $argstr), E_USER_NOTICE); + } function getDefaultLinkArguments() { return array('targetpage' => $this->getName(), -- 2.45.0