Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions syntax/video.php
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -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;
Expand Down