Skip to content
Snippets Groups Projects
Commit 8cc41db0 authored by Andreas Gohr's avatar Andreas Gohr
Browse files

fix renderer:plugin() signature

in 82d61635 we introduced passing the
raw match for syntax plugins to the plugin method of the renderer. This
was introduced for renderer plugins that might need access to the raw
syntax (like the table editor or WYSIWYG plugins). However the function
signature was never updated, making these additional parameter basically
secret. With strict standard this throws errors. This patch fixes this.
parent 99ba9fe6
No related branches found
No related tags found
No related merge requests found
......@@ -59,9 +59,15 @@ class Doku_Renderer extends DokuWiki_Plugin {
return false;
}
//handle plugin rendering
function plugin($name,$data){
/**
* handle plugin rendering
*
* @param string $name Plugin name
* @param mixed $data custom data set by handler
* @param string $state matched state if any
* @param string $match raw matched syntax
*/
function plugin($name,$data,$state='',$match=''){
$plugin = plugin_load('syntax',$name);
if($plugin != null){
$plugin->render($this->getFormat(),$this,$data);
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment