Skip to content
This repository is currently being migrated. It's locked while the migration is in progress.

Commit 43f7aba

Browse files
committed
Merge pull request dokufreaks#60 from gamma/master
Fix for PHP Strict
2 parents bdfa166 + 6a44ab7 commit 43f7aba

File tree

5 files changed

+9
-9
lines changed

5 files changed

+9
-9
lines changed

action.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class action_plugin_blog extends DokuWiki_Action_Plugin {
1515
/**
1616
* register the eventhandlers
1717
*/
18-
function register(&$contr) {
18+
function register(Doku_Event_Handler $contr) {
1919
$contr->register_hook('ACTION_ACT_PREPROCESS', 'BEFORE', $this, 'handle_act_preprocess', array());
2020
$contr->register_hook('FEED_ITEM_ADD', 'BEFORE', $this, 'handle_feed_item');
2121
$contr->register_hook('PARSER_CACHE_USE', 'BEFORE', $this, 'handle_cache');

syntax/archive.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function connectTo($mode) {
2626
$this->Lexer->addSpecialPattern('\{\{archive>.*?\}\}', $mode, 'plugin_blog_archive');
2727
}
2828

29-
function handle($match, $state, $pos, &$handler) {
29+
function handle($match, $state, $pos, Doku_Handler $handler) {
3030
global $ID;
3131

3232
$match = substr($match, 10, -2); // strip {{archive> from start and }} from end
@@ -85,7 +85,7 @@ function handle($match, $state, $pos, &$handler) {
8585
return array($ns, $start, $end, $flags, $refine);
8686
}
8787

88-
function render($mode, &$renderer, $data) {
88+
function render($mode, Doku_Renderer $renderer, $data) {
8989
list($ns, $start, $end, $flags, $refine) = $data;
9090

9191
// get the blog entries for our namespace

syntax/autoarchive.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function connectTo($mode) {
2626
$this->Lexer->addSpecialPattern('\{\{autoarchive>.*?\}\}', $mode, 'plugin_blog_autoarchive');
2727
}
2828

29-
function handle($match, $state, $pos, &$handler) {
29+
function handle($match, $state, $pos, Doku_Handler $handler) {
3030
global $ID;
3131

3232
$match = substr($match, 14, -2); // strip {{autoarchive> from start and }} from end
@@ -42,7 +42,7 @@ function handle($match, $state, $pos, &$handler) {
4242
return array($ns, $flags, $refine, $pos);
4343
}
4444

45-
function render($mode, &$renderer, $data) {
45+
function render($mode, Doku_Renderer $renderer, $data) {
4646
list($ns, $flags, $refine, $pos) = $data;
4747
if ($mode != 'xhtml') return false;
4848

syntax/blog.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ function connectTo($mode) {
2626
$this->Lexer->addSpecialPattern('\{\{blog>.*?\}\}',$mode,'plugin_blog_blog');
2727
}
2828

29-
function handle($match, $state, $pos, &$handler) {
29+
function handle($match, $state, $pos, Doku_Handler $handler) {
3030
global $ID;
3131

3232
$match = substr($match, 7, -2); // strip {{blog> from start and }} from end
@@ -53,7 +53,7 @@ function handle($match, $state, $pos, &$handler) {
5353
return array($ns, $num, $flags, $refine);
5454
}
5555

56-
function render($mode, &$renderer, $data) {
56+
function render($mode, Doku_Renderer $renderer, $data) {
5757
list($ns, $num, $flags, $refine) = $data;
5858

5959
$first = $_REQUEST['first'];

syntax/draft.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,14 +21,14 @@ function connectTo($mode) {
2121
$this->Lexer->addSpecialPattern('~~DRAFT~~', $mode, 'plugin_blog_draft');
2222
}
2323

24-
function handle($match, $state, $pos, &$handler) {
24+
function handle($match, $state, $pos, Doku_Handler $handler) {
2525
return true;
2626
}
2727

2828
/**
2929
* The only thing this plugin component does is to set the metadata 'type' to 'draft'
3030
*/
31-
function render($mode, &$renderer, $data) {
31+
function render($mode, Doku_Renderer $renderer, $data) {
3232
if ($mode == 'xthml') {
3333
return true; // don't output anything
3434
} elseif ($mode == 'metadata') {

0 commit comments

Comments
 (0)