diff options
author | Anika Henke <anika@selfthinker.org> | 2012-11-18 12:02:20 +0000 |
---|---|---|
committer | Anika Henke <anika@selfthinker.org> | 2012-11-18 12:02:20 +0000 |
commit | c786a1b6200b051466db67a1791f46bbd375bb3b (patch) | |
tree | 0bb49c135915712f2ce658eff35df169c7a09651 /inc/template.php | |
parent | df84f66f8243d292ae9f112ee1df85967de9ca15 (diff) | |
download | rpg-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.php | 5 |
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; |