Skip to content

Commit

Permalink
Merge pull request #1 from cosmocode/master
Browse files Browse the repository at this point in the history
fix method signatures. Thanks to Andi.
  • Loading branch information
GJRobert committed Apr 21, 2019
2 parents 656b32b + bfcf3e4 commit 0e208e5
Show file tree
Hide file tree
Showing 7 changed files with 12 additions and 12 deletions.
4 changes: 2 additions & 2 deletions action.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,15 +13,15 @@ class action_plugin_formatplus2 extends DokuWiki_Action_Plugin {
/**
* register the eventhandlers
*/
function register(&$contr){
function register(Doku_Event_Handler $contr){
$contr->register_hook('TOOLBAR_DEFINE', 'AFTER', $this, 'toolbar_event', array());
}

/**
*
* @author Tom N Harris <tnharris@whoopdedo.org>
*/
function toolbar_event(&$event, $param){
function toolbar_event(Doku_Event $event, $param){
$disabled = explode(',',$this->getConf('disable_syntax'));
$disabled = array_map('trim',$disabled);
$buttons = array();
Expand Down
4 changes: 2 additions & 2 deletions formatting.php
Original file line number Diff line number Diff line change
Expand Up @@ -95,7 +95,7 @@ function postConnect() {
$this->Lexer->addExitPattern($this->formatting['close'], 'plugin_formatplus2_'.$this->getPluginComponent());
}

function handle($match, $state, $pos, &$handler){
function handle($match, $state, $pos, Doku_Handler $handler){
$formatting = $this->_getFormatting();
if (empty($formatting)) return array(DOKU_LEXER_UNMATCHED,$match);
if ($state != DOKU_LEXER_UNMATCHED) {
Expand All @@ -108,7 +108,7 @@ function handle($match, $state, $pos, &$handler){
return array($state,$output);
}

function render($format, &$renderer, $data) {
function render($format, Doku_Renderer $renderer, $data) {
list($state,$output) = $data;
if ($format == 'xhtml'){
switch ($state) {
Expand Down
Binary file removed syntax/.quoteplus.php.kate-swp
Binary file not shown.
4 changes: 2 additions & 2 deletions syntax/blockdeleteplus.php
Original file line number Diff line number Diff line change
Expand Up @@ -63,7 +63,7 @@ function postConnect() {
}
}

function handle($match, $state, $pos, &$handler){
function handle($match, $state, $pos, Doku_Handler $handler){
switch ($state) {
case DOKU_LEXER_ENTER:
$match = substr($match,4,-1);
Expand Down Expand Up @@ -93,7 +93,7 @@ function handle($match, $state, $pos, &$handler){
return array($state,$output);
}

function render($format, &$renderer, $data) {
function render($format, Doku_Renderer $renderer, $data) {
list($state,$output) = $data;
if (substr($format,0,5) == 'xhtml'){
switch ($state) {
Expand Down
4 changes: 2 additions & 2 deletions syntax/blockinsertplus.php
Original file line number Diff line number Diff line change
Expand Up @@ -58,7 +58,7 @@ function postConnect() {
}
}

function handle($match, $state, $pos, &$handler){
function handle($match, $state, $pos, Doku_Handler $handler){
switch ($state) {
case DOKU_LEXER_ENTER:
$match = substr($match,4,-1);
Expand Down Expand Up @@ -88,7 +88,7 @@ function handle($match, $state, $pos, &$handler){
return array($state,$output);
}

function render($format, &$renderer, $data) {
function render($format, Doku_Renderer $renderer, $data) {
list($state,$output) = $data;
if (substr($format,0,5) == 'xhtml'){
switch ($state) {
Expand Down
4 changes: 2 additions & 2 deletions syntax/blockquoteplus.php
Original file line number Diff line number Diff line change
Expand Up @@ -57,7 +57,7 @@ function postConnect() {
}
}

function handle($match, $state, $pos, &$handler){
function handle($match, $state, $pos, Doku_Handler $handler){
switch ($state) {
case DOKU_LEXER_ENTER:
$output = trim(substr($match,6,-1));
Expand All @@ -72,7 +72,7 @@ function handle($match, $state, $pos, &$handler){
return array($state,$output);
}

function render($format, &$renderer, $data) {
function render($format, Doku_Renderer $renderer, $data) {
list($state,$output) = $data;
if (substr($format,0,5) == 'xhtml'){
switch ($state) {
Expand Down
4 changes: 2 additions & 2 deletions syntax/quoteplus.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,7 +49,7 @@ function postConnect() {
}
}

function handle($match, $state, $pos, &$handler){
function handle($match, $state, $pos, Doku_Handler $handler){
switch ($state) {
case DOKU_LEXER_ENTER:
if (substr($match,2,1) == '=')
Expand All @@ -67,7 +67,7 @@ function handle($match, $state, $pos, &$handler){
return array($state,$output);
}

function render($format, &$renderer, $data) {
function render($format, Doku_Renderer $renderer, $data) {
list($state,$output) = $data;
if ($format == 'xhtml'){
switch ($state) {
Expand Down

0 comments on commit 0e208e5

Please sign in to comment.