summaryrefslogtreecommitdiff
path: root/lib/plugins/info
diff options
context:
space:
mode:
authorMichael Hamann <michael@content-space.de>2013-10-20 20:21:42 +0200
committerMichael Hamann <michael@content-space.de>2013-10-20 20:21:42 +0200
commite07886c01389351f28a254ef6f7c9611453508fb (patch)
tree8d01b3e6402d8b32048bcbed9fbbfa96af21e20c /lib/plugins/info
parentd1612d99b95fed9b053ebdb5e4c12f30aeb69203 (diff)
downloadrpg-e07886c01389351f28a254ef6f7c9611453508fb.tar.gz
rpg-e07886c01389351f28a254ef6f7c9611453508fb.tar.bz2
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.
Diffstat (limited to 'lib/plugins/info')
-rw-r--r--lib/plugins/info/syntax.php7
1 files changed, 4 insertions, 3 deletions
diff --git a/lib/plugins/info/syntax.php b/lib/plugins/info/syntax.php
index e68061e5d..f8c6eb484 100644
--- a/lib/plugins/info/syntax.php
+++ b/lib/plugins/info/syntax.php
@@ -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,