Skip to content

Commit

Permalink
fix declaration of functions to be compatible with Doku_Renderer_xhtm…
Browse files Browse the repository at this point in the history
…l functions
  • Loading branch information
selfthinker committed Jan 21, 2024
1 parent b84fb74 commit 84f37cf
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions renderer.php
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ function document_end() {
$this->doc = preg_replace('/<!--PN-->/','',$this->doc);
}

function header($text, $level, $pos) {
function header($text, $level, $pos, $returnonly = false) {
parent::header($text, $level, $pos);

if ($this->_displayPN()) {
Expand Down Expand Up @@ -72,7 +72,7 @@ function p_close() {
}
}

function listitem_open($level) {
function listitem_open($level, $node = false) {
$this->doc .= '<li class="level'.$level.'"'.$this->_getID(1,1).'>';
}

Expand All @@ -86,12 +86,12 @@ function preformatted($text, $type='code') {
$this->_getLink().'</pre>'.DOKU_LF;
}

function table_open($maxcols = null, $numrows = null) {
function table_open($maxcols = null, $numrows = null, $pos = null, $classes = null) {
$this->_counter['row_counter'] = 0;
$this->doc .= '<div class="table"><table class="inline"'.$this->_getID(1,1).'>'.DOKU_LF;
}

function table_close(){
function table_close($pos = null){
$this->doc .= '</table></div>'.$this->_getLink(1).DOKU_LF;
}

Expand Down Expand Up @@ -130,7 +130,7 @@ function html($text, $wrapper='code') {
}
}

function _highlight($type, $text, $language=null, $filename=null) {
function _highlight($type, $text, $language=null, $filename=null, $options = null) {
global $conf;
global $ID;
global $lang;
Expand Down

0 comments on commit 84f37cf

Please sign in to comment.