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
splitbrain committed Feb 2, 2016
2 parents b73a20c + 9205f92 commit 06e0612
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 @@ -21,7 +21,7 @@ function getInfo() {
return confToHash(dirname(__FILE__).'/plugin.info.txt');
}

function register(&$controller) {
function register(Doku_Event_Handler $controller) {

$controller->register_hook('TPL_METAHEADER_OUTPUT', 'BEFORE', $this, 'handle_tpl_metaheader_output');

Expand Down
4 changes: 2 additions & 2 deletions syntax.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ function connectTo($mode) {
$this->Lexer->addSpecialPattern('{{fbfanbox>[0-9]+.*?}}',$mode,'plugin_facebook');
}

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

$data = array(
'type' => 'fanbox',
Expand Down Expand Up @@ -83,7 +83,7 @@ function handle($match, $state, $pos, &$handler){
return $data;
}

function render($mode, &$R, $data) {
function render($mode, Doku_Renderer $R, $data) {
if($mode != 'xhtml') return false;

if($data['align'] == 'center'){
Expand Down

0 comments on commit 06e0612

Please sign in to comment.