Skip to content

Commit

Permalink
Fix for PHP Strict
Browse files Browse the repository at this point in the history
  • Loading branch information
gamma committed Jul 15, 2014
1 parent 345bfc4 commit bfe0f88
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion action.php
Expand Up @@ -6,7 +6,7 @@ class action_plugin_fancysearch extends DokuWiki_Action_Plugin {
/**
* Register its handlers with the DokuWiki's event controller
*/
function register(Doku_Event_Handler &$controller) {
function register(Doku_Event_Handler $controller) {
$controller->register_hook('DOKUWIKI_STARTED', 'AFTER', $this, '_fixquery');
}

Expand Down
2 changes: 1 addition & 1 deletion plugin.info.txt
@@ -1,7 +1,7 @@
base fancysearch
author i-net software
email tools@inetsoftware.de
date 2014-01-31
date 2014-07-15
name Fancysearch Plugin
desc Provides a dropdown list for common namespaces enhancing the search input.
url https://github.com/i-net-software/dokuwiki-plugin-fancysearch
4 changes: 2 additions & 2 deletions syntax.php
Expand Up @@ -23,7 +23,7 @@ function connectTo($mode) {
$this->Lexer->addSpecialPattern('{{fancysearch>.*?}}', $mode, 'plugin_fancysearch');
}

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

$match = substr($match, 14, -2); // strip markup
Expand All @@ -42,7 +42,7 @@ function handle($match, $state, $pos, &$handler) {

}

function render($mode, &$renderer, $data) {
function render($mode, Doku_Renderer $renderer, $data) {
global $conf, $ID, $FANCYDATA;

list($state, $spaces) = $data;
Expand Down

0 comments on commit bfe0f88

Please sign in to comment.