summaryrefslogtreecommitdiff
path: root/lib/tpl/dokuwiki/detail.php
diff options
context:
space:
mode:
authorAndreas Gohr <andi@splitbrain.org>2012-07-01 11:41:22 +0200
committerAndreas Gohr <andi@splitbrain.org>2012-07-01 14:35:51 +0200
commite66d3e6dfa7ba6f0cf55b58f0b00b66b52c98321 (patch)
tree9904e4a6e8c6d7c9017626e5195e3291388101b3 /lib/tpl/dokuwiki/detail.php
parent65ee48a57f42826189844ad1039c37a8a675dbab (diff)
downloadrpg-e66d3e6dfa7ba6f0cf55b58f0b00b66b52c98321.tar.gz
rpg-e66d3e6dfa7ba6f0cf55b58f0b00b66b52c98321.tar.bz2
Improved sidebar inclusion
Template authors now can use tpl_sidebar() to include the sidebar. Sidebars can be defined in subnamespaces as well
Diffstat (limited to 'lib/tpl/dokuwiki/detail.php')
-rw-r--r--lib/tpl/dokuwiki/detail.php2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/tpl/dokuwiki/detail.php b/lib/tpl/dokuwiki/detail.php
index a3516a7ed..5fe1a1ad7 100644
--- a/lib/tpl/dokuwiki/detail.php
+++ b/lib/tpl/dokuwiki/detail.php
@@ -10,7 +10,7 @@
// must be run from within DokuWiki
if (!defined('DOKU_INC')) die();
-$showSidebar = $conf['sidebar'] && page_exists($conf['sidebar']) && ($ACT=='show');
+$showSidebar = page_findnearest($conf['sidebar']) && ($ACT=='show');
?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="<?php echo $conf['lang']?>"