summaryrefslogtreecommitdiff
path: root/inc/template.php
diff options
context:
space:
mode:
authorAnika Henke <anika@selfthinker.org>2012-11-18 12:02:20 +0000
committerAnika Henke <anika@selfthinker.org>2012-11-18 12:02:20 +0000
commitc786a1b6200b051466db67a1791f46bbd375bb3b (patch)
tree0bb49c135915712f2ce658eff35df169c7a09651 /inc/template.php
parentdf84f66f8243d292ae9f112ee1df85967de9ca15 (diff)
downloadrpg-c786a1b6200b051466db67a1791f46bbd375bb3b.tar.gz
rpg-c786a1b6200b051466db67a1791f46bbd375bb3b.tar.bz2
fixed wrong sidebar showing in namespaces when sidebar is disabled
Diffstat (limited to 'inc/template.php')
-rw-r--r--inc/template.php5
1 files changed, 2 insertions, 3 deletions
diff --git a/inc/template.php b/inc/template.php
index 0d96be214..4af35cc2b 100644
--- a/inc/template.php
+++ b/inc/template.php
@@ -1471,11 +1471,10 @@ function tpl_license($img = 'badge', $imgonly = false, $return = false, $wrap =
* template
*/
function tpl_include_page($pageid, $print = true, $propagate = false) {
- global $ID;
- global $TOC;
-
+ if (!$pageid) return false;
if ($propagate) $pageid = page_findnearest($pageid);
+ global $TOC;
$oldtoc = $TOC;
$html = p_wiki_xhtml($pageid, '', false);
$TOC = $oldtoc;