Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Adjust method signatures to match parent #2

Merged
merged 1 commit into from Feb 20, 2016
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
4 changes: 2 additions & 2 deletions syntax.php
Expand Up @@ -38,7 +38,7 @@ public function connectTo($mode) {
}


public function handle($match, $state, $pos, &$handler){
public function handle($match, $state, $pos, Doku_Handler $handler){
$match = explode("|", preg_replace("/^.*?>(.*)}}$/", "$1", $match));
// terms
$terms = preg_replace("/[^,a-zA-Z0-9 +]/", "", $match[0]);
Expand All @@ -55,7 +55,7 @@ public function handle($match, $state, $pos, &$handler){
return $data;
}

public function render($mode, &$renderer, $data) {
public function render($mode, Doku_Renderer $renderer, $data) {
if($mode != 'xhtml') return false;
$renderer->doc .= '<script type="text/javascript" src="//www.google.com/trends/embed.js?'
.'hl='.$data["hl"]
Expand Down