aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template.php
diff options
context:
space:
mode:
authorLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2002-10-03 02:43:41 +0000
committerLudovic Arnaud <ludovic_arnaud@users.sourceforge.net>2002-10-03 02:43:41 +0000
commit268d936f4673974e46d16d8ddd7edba1422aba9a (patch)
tree0e3ef51b37a4f4ebe10dd75af26cd2ba099e8790 /phpBB/includes/template.php
parent1666e7d3e733bf81b460497ac334232258c343fa (diff)
downloadforums-268d936f4673974e46d16d8ddd7edba1422aba9a.tar
forums-268d936f4673974e46d16d8ddd7edba1422aba9a.tar.gz
forums-268d936f4673974e46d16d8ddd7edba1422aba9a.tar.bz2
forums-268d936f4673974e46d16d8ddd7edba1422aba9a.tar.xz
forums-268d936f4673974e46d16d8ddd7edba1422aba9a.zip
Subforums handling part 2, it almost works. Also added: the "Explain" link at the bottom page, can be removed easily before official release if necessary.
git-svn-id: file:///svn/phpbb/trunk@2913 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/template.php')
-rw-r--r--phpBB/includes/template.php8
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php
index 70d6053517..e8bb63e56b 100644
--- a/phpBB/includes/template.php
+++ b/phpBB/includes/template.php
@@ -171,9 +171,15 @@ class Template {
*/
function display($handle)
{
+ if (!empty($_REQUEST['explain']))
+ {
+ global $db;
+ echo $this->sql_report();
+ return TRUE;
+ }
$_str = '';
- if ( !($this->compile_load($_str, $handle, true)) )
+ if (!$this->compile_load($_str, $handle, true))
{
if ( !$this->loadfile($handle) )
{