Skip to content
Snippets Groups Projects
Commit e07886c0 authored by Michael Hamann's avatar Michael Hamann
Browse files

Info plugin: allow xhtml renders to not to be an xhtml renderer

Renderers that set the format to xhtml don't necessarily inherit from
Doku_Renderer_xhtml, this reverts a prior change that introduced the
stricter parameter type.
parent d1612d99
No related branches found
No related tags found
No related merge requests found
......@@ -104,7 +104,7 @@ class syntax_plugin_info extends DokuWiki_Syntax_Plugin {
*
* uses some of the original renderer methods
*/
function _plugins_xhtml($type, Doku_Renderer_xhtml &$renderer){
function _plugins_xhtml($type, Doku_Renderer &$renderer){
global $lang;
$renderer->doc .= '<ul>';
......@@ -142,7 +142,7 @@ class syntax_plugin_info extends DokuWiki_Syntax_Plugin {
*
* uses some of the original renderer methods
*/
function _helpermethods_xhtml(Doku_Renderer_xhtml &$renderer){
function _helpermethods_xhtml(Doku_Renderer &$renderer){
$plugins = plugin_list('helper');
foreach($plugins as $p){
if (!$po = plugin_load('helper',$p)) continue;
......@@ -250,10 +250,11 @@ class syntax_plugin_info extends DokuWiki_Syntax_Plugin {
/**
* Adds a TOC item
*/
function _addToTOC($text, $level, Doku_Renderer_xhtml &$renderer){
function _addToTOC($text, $level, Doku_Renderer &$renderer){
global $conf;
if (($level >= $conf['toptoclevel']) && ($level <= $conf['maxtoclevel'])){
/** @var $renderer Doku_Renderer_xhtml */
$hid = $renderer->_headerToLink($text, 'true');
$renderer->toc[] = array(
'hid' => $hid,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment