From 0513ef4d17e32c8be1fec6615918e6d694667738 Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sun, 9 Oct 2005 17:59:27 +0000 Subject: - 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 --- phpBB/includes/template.php | 13 +++++++++++++ 1 file changed, 13 insertions(+) (limited to 'phpBB/includes/template.php') 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) -- cgit v1.2.1