From 38486b15411bb19da55b5cc8647e1814a21e1f30 Mon Sep 17 00:00:00 2001 From: xue <> Date: Tue, 7 Feb 2006 20:04:46 +0000 Subject: Fixed a bug about setting ErrorTemplatePath --- framework/Exceptions/TErrorHandler.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/framework/Exceptions/TErrorHandler.php b/framework/Exceptions/TErrorHandler.php index 682de231..87f6b1c2 100644 --- a/framework/Exceptions/TErrorHandler.php +++ b/framework/Exceptions/TErrorHandler.php @@ -95,7 +95,7 @@ class TErrorHandler extends TModule */ public function setErrorTemplatePath($value) { - if(($templatePath=Prado::getPathOfNamespace($this->_templatePath))!==null && is_dir($templatePath)) + if(($templatePath=Prado::getPathOfNamespace($value))!==null && is_dir($templatePath)) $this->_templatePath=$templatePath; else throw new TConfigurationException('errorhandler_errortemplatepath_invalid',$value); -- cgit v1.2.3