Skip to content

Commit

Permalink
Merge pull request #1 from splitbrain-forks/php7-signature
Browse files Browse the repository at this point in the history
Adjust method signatures to match parent
  • Loading branch information
solewniczak committed Feb 1, 2017
2 parents a1f08e6 + 7286de5 commit 68aea7c
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion action.php
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
* need to inherit from this class
*/
class action_plugin_filterrss extends DokuWiki_Action_Plugin {
function register(&$controller) {
function register(Doku_Event_Handler $controller) {
$controller->register_hook('PARSER_CACHE_USE', 'BEFORE', $this, '_preventCache', array ());
}
/**
Expand Down
4 changes: 2 additions & 2 deletions syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ function connectTo($mode) {
$this->Lexer->addSpecialPattern('\[filterrss.*?\]',$mode,'plugin_filterrss');
}

function handle($match, $state, $pos, &$handler) {
function handle($match, $state, $pos, Doku_Handler $handler) {

//Remove ] from the end
$match = substr($match, 0, -1);
Expand Down Expand Up @@ -133,7 +133,7 @@ function handle($match, $state, $pos, &$handler) {
return array('url' => $url, 'conditions' => $cond_output, 'order_by' => $order_by, 'desc' => $desc, 'limit' => $limit);
}

function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer $renderer, $data) {
if($mode == 'xhtml') {

$filterrss =& plugin_load('helper', 'filterrss');
Expand Down

0 comments on commit 68aea7c

Please sign in to comment.