aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template.php
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2005-10-09 17:59:27 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2005-10-09 17:59:27 +0000
commit0513ef4d17e32c8be1fec6615918e6d694667738 (patch)
treef7aad03713f11023643d7c6fb7192b5b96a1ffe2 /phpBB/includes/template.php
parent9732b0deb29ed149c4e9b602fc7d16ac721389a6 (diff)
downloadforums-0513ef4d17e32c8be1fec6615918e6d694667738.tar
forums-0513ef4d17e32c8be1fec6615918e6d694667738.tar.gz
forums-0513ef4d17e32c8be1fec6615918e6d694667738.tar.bz2
forums-0513ef4d17e32c8be1fec6615918e6d694667738.tar.xz
forums-0513ef4d17e32c8be1fec6615918e6d694667738.zip
- added new query type to dbal's sql_build_array
- allow setting custom template path - adjusted module class to correctly parse trees with more than one category - added caching to module class git-svn-id: file:///svn/phpbb/trunk@5268 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/template.php')
-rw-r--r--phpBB/includes/template.php13
1 files changed, 13 insertions, 0 deletions
diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php
index ebd5655e6b..64994cb3cf 100644
--- a/phpBB/includes/template.php
+++ b/phpBB/includes/template.php
@@ -75,6 +75,19 @@ class template
return true;
}
+ function set_custom_template($template_path, $template_name, $static_lang = false)
+ {
+ global $phpbb_root_path;
+
+ $this->tpl = 'primary';
+ $this->root = $template_path;
+ $this->cachepath = $phpbb_root_path . 'cache/ctpl_' . $template_name . '_';
+
+ $this->static_lang = $static_lang;
+
+ return true;
+ }
+
// Sets the template filenames for handles. $filename_array
// should be a hash of handle => filename pairs.
function set_filenames($filename_array)