Skip to content
Permalink
Browse files

Adjust method signatures to match parent

  • Loading branch information
splitbrain committed Feb 2, 2016
1 parent 47c9cb4 commit c423a02710d143dfd58073108930e748d4c3a26e
Showing with 3 additions and 3 deletions.
  1. +1 −1 action.php
  2. +2 −2 syntax.php
@@ -25,7 +25,7 @@ class action_plugin_poldek extends DokuWiki_Action_Plugin {
/**
* Register its handlers with the dokuwiki's event controller
*/
function register(&$controller) {
function register(Doku_Event_Handler $controller) {
$controller->register_hook('INDEXER_TASKS_RUN', 'BEFORE', $this, 'cron', array());
$controller->register_hook('PARSER_CACHE_USE','BEFORE', $this, 'cache');
}
@@ -42,7 +42,7 @@ public function connectTo($mode) {
/**
* Handle the match
*/
public function handle($match, $state, $pos, &$handler) {
public function handle($match, $state, $pos, Doku_Handler $handler) {
$raw = substr($match, 9, -2);
$data = array('pkg' => $raw);
@@ -52,7 +52,7 @@ public function handle($match, $state, $pos, &$handler) {
/**
* Create output
*/
public function render($format, &$renderer, $data) {
public function render($format, Doku_Renderer $renderer, $data) {
if ($format == "metadata") {
// add packages to metadata
$packages = &$renderer->meta["plugin_" . $this->getPluginName()];

0 comments on commit c423a02

Please sign in to comment.
You can’t perform that action at this time.