summaryrefslogtreecommitdiff
path: root/lib/plugins/info/syntax.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2013-10-20 11:30:51 -0700
committerAndreas Gohr <andi@splitbrain.org>2013-10-20 11:30:51 -0700
commitd9529222b05d3366179c8a5bbd6d717664b98de0 (patch)
tree7789b8bc9ee9405f0ce33ff19dad5d15fb9b6207 /lib/plugins/info/syntax.php
parent9f5b9cf15569babaa90f0d6f3dd58cefd5439bc5 (diff)
parente07886c01389351f28a254ef6f7c9611453508fb (diff)
downloadrpg-d9529222b05d3366179c8a5bbd6d717664b98de0.tar.gz
rpg-d9529222b05d3366179c8a5bbd6d717664b98de0.tar.bz2
Merge pull request #380 from splitbrain/phpstrict
Php strict
Diffstat (limited to 'lib/plugins/info/syntax.php')
-rw-r--r--lib/plugins/info/syntax.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/lib/plugins/info/syntax.php b/lib/plugins/info/syntax.php
index 5d969d7a2..f8c6eb484 100644
--- a/lib/plugins/info/syntax.php
+++ b/lib/plugins/info/syntax.php
@@ -58,6 +58,7 @@ class syntax_plugin_info extends DokuWiki_Syntax_Plugin {
*/
function render($format, Doku_Renderer &$renderer, $data) {
if($format == 'xhtml'){
+ /** @var Doku_Renderer_xhtml $renderer */
//handle various info stuff
switch ($data[0]){
case 'syntaxmodes':
@@ -142,8 +143,6 @@ class syntax_plugin_info extends DokuWiki_Syntax_Plugin {
* uses some of the original renderer methods
*/
function _helpermethods_xhtml(Doku_Renderer &$renderer){
- global $lang;
-
$plugins = plugin_list('helper');
foreach($plugins as $p){
if (!$po = plugin_load('helper',$p)) continue;
@@ -251,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,