From 424dc6665e24481e58c7d9e706bb0db81ce77f4e Mon Sep 17 00:00:00 2001 From: Andreas Gohr Date: Fri, 22 Jan 2016 17:34:42 +0100 Subject: [PATCH] Adjust method signatures to match parent --- syntax/video.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/syntax/video.php b/syntax/video.php index ff78300..78c7f0d 100644 --- a/syntax/video.php +++ b/syntax/video.php @@ -43,7 +43,7 @@ public function connectTo($mode) { $this->Lexer->addSpecialPattern('\{\{[^}]*(?:(?:webm)|(?:ogv)|(?:mp4))(?:\|(?:\d{2,4}x\d{2,4})?(?:\|(?:loop)?,?(?:autoplay)?(?:,loop)?)?)? ?\}\}',$mode,'plugin_html5video_video'); } - public function handle($match, $state, $pos, &$handler){ + public function handle($match, $state, $pos, Doku_Handler $handler){ $params = substr($match, strlen('{{'), - strlen('}}')); //Strip markup if(strpos($params, ' ') === 0) { // Space as first character if(substr_compare($params, ' ', -1, 1) === 0) { // Space a front and back = centered @@ -65,7 +65,7 @@ public function handle($match, $state, $pos, &$handler){ return array(state, explode('|', $params)); } - public function render($mode, &$renderer, $data) { + public function render($mode, Doku_Renderer $renderer, $data) { if($mode != 'xhtml') return false; list($state, $params) = $data;