summaryrefslogtreecommitdiff
path: root/framework/Exceptions
diff options
context:
space:
mode:
authortof <>2008-06-27 07:52:37 +0000
committertof <>2008-06-27 07:52:37 +0000
commit4fdb3675a79f80e8d9400aad7015250d125c92dd (patch)
tree31908d35fa5c66551257eec027c073fa41dde4ff /framework/Exceptions
parent03566372b32f4e861630bc9cf90d62cb6a4083ea (diff)
Fixed #859
Diffstat (limited to 'framework/Exceptions')
-rw-r--r--framework/Exceptions/TErrorHandler.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Exceptions/TErrorHandler.php b/framework/Exceptions/TErrorHandler.php
index f78a26e8..d60e2b49 100644
--- a/framework/Exceptions/TErrorHandler.php
+++ b/framework/Exceptions/TErrorHandler.php
@@ -77,15 +77,15 @@ class TErrorHandler extends TModule
public function init($config)
{
$this->getApplication()->setErrorHandler($this);
- if($this->_templatePath===null)
- $this->_templatePath=Prado::getFrameworkPath().'/Exceptions/templates';
}
/**
* @return string the directory containing error template files.
*/
public function getErrorTemplatePath()
- {
+ {
+ if($this->_templatePath===null)
+ $this->_templatePath=Prado::getFrameworkPath().'/Exceptions/templates';
return $this->_templatePath;
}