aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/template.php
diff options
context:
space:
mode:
authorPaul S. Owen <psotfx@users.sourceforge.net>2003-01-08 18:27:16 +0000
committerPaul S. Owen <psotfx@users.sourceforge.net>2003-01-08 18:27:16 +0000
commitf236f3f838bd133f15d1f1caf8e15de8cb91bd37 (patch)
tree27f7daaa50dc37dd0bd866588c518c867b63f41d /phpBB/includes/template.php
parentf58083b8af9e09cec182791b3e2ac72de6c7ee82 (diff)
downloadforums-f236f3f838bd133f15d1f1caf8e15de8cb91bd37.tar
forums-f236f3f838bd133f15d1f1caf8e15de8cb91bd37.tar.gz
forums-f236f3f838bd133f15d1f1caf8e15de8cb91bd37.tar.bz2
forums-f236f3f838bd133f15d1f1caf8e15de8cb91bd37.tar.xz
forums-f236f3f838bd133f15d1f1caf8e15de8cb91bd37.zip
Updates as opposed to downdates
git-svn-id: file:///svn/phpbb/trunk@3284 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/template.php')
-rw-r--r--phpBB/includes/template.php16
1 files changed, 11 insertions, 5 deletions
diff --git a/phpBB/includes/template.php b/phpBB/includes/template.php
index 53e559a1c6..44d93b0609 100644
--- a/phpBB/includes/template.php
+++ b/phpBB/includes/template.php
@@ -37,6 +37,12 @@
to this source
*/
+// Changes for 2.2:
+//
+// * Allow use of Smarty plug-ins?
+// * Allow use of DB for storage of compiled templates
+// * Reduce number of methods and variables
+
class Template {
var $classname = 'Template';
@@ -129,12 +135,12 @@ class Template {
// If we don't have a file assigned to this handle, die.
if (!isset($this->files[$handle]))
{
- message_die("Template->loadfile(): No file specified for handle $handle");
+ trigger_error("Template->loadfile(): No file specified for handle $handle", E_USER_ERROR);
}
if (!($fp = @fopen($this->files[$handle], 'r')))
{
- message_die("Template->loadfile(): Error - file $filename does not exist or is empty");
+ trigger_error("Template->loadfile(): Error - file $filename does not exist or is empty", E_USER_ERROR);
}
$str = '';
@@ -173,7 +179,7 @@ class Template {
{
if (!$this->loadfile($handle))
{
- message_die("Template->pparse(): Couldn't load template file for handle $handle");
+ trigger_error("Template->pparse(): Couldn't load template file for handle $handle", E_USER_ERROR);
}
// Actually compile the code now.
@@ -202,7 +208,7 @@ class Template {
{
if (!$this->loadfile($handle))
{
- message_die("Template->pparse(): Couldn't load template file for handle $handle");
+ trigger_error("Template->pparse(): Couldn't load template file for handle $handle", E_USER_ERROR);
}
$code = $this->compile($this->uncompiled_code[$handle], true, '_str');
@@ -230,7 +236,7 @@ class Template {
{
if (!$this->loadfile($handle))
{
- message_die("Template->pparse(): Couldn't load template file for handle $handle");
+ trigger_error("Template->pparse(): Couldn't load template file for handle $handle", E_USER_ERROR);
}
$this->compiled_code[$handle] = $this->compile($this->uncompiled_code[$handle]);