Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
inherited handle() and render() args
  • Loading branch information
ssahara committed Aug 5, 2014
1 parent 1ec27c2 commit ea11154
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions syntax/canvas.php
Expand Up @@ -45,7 +45,7 @@ function postConnect() {
/**
* handle syntax
*/
public function handle($match, $state, $pos, &$handler){
public function handle($match, $state, $pos, Doku_Handler $handler){

global $conf;
// check whether inlinejs plugin exists
Expand Down Expand Up @@ -79,12 +79,12 @@ public function handle($match, $state, $pos, &$handler){
/**
* Render
*/
public function render($mode, &$renderer, $indata) {
public function render($format, Doku_Renderer $renderer, $indata) {

if (empty($indata)) return false;
list($state, $data) = $indata;

if ($mode != 'xhtml') return false;
if ($format != 'xhtml') return false;

switch ($state) {
case DOKU_LEXER_ENTER:
Expand Down

0 comments on commit ea11154

Please sign in to comment.