summaryrefslogtreecommitdiff
path: root/framework/Exceptions
diff options
context:
space:
mode:
authorxue <>2005-11-22 12:49:21 +0000
committerxue <>2005-11-22 12:49:21 +0000
commit75d146ca341c0e0b92e8dcd180fbac352155644a (patch)
tree53a9a2aa3bbe1832a1fa91e035c3bb97c8414001 /framework/Exceptions
parent12a74128ad47e706fd0acc6a3367cbe8bd4e7f1e (diff)
Diffstat (limited to 'framework/Exceptions')
-rw-r--r--framework/Exceptions/TException.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/framework/Exceptions/TException.php b/framework/Exceptions/TException.php
index 49519f9f..a4cd6f60 100644
--- a/framework/Exceptions/TException.php
+++ b/framework/Exceptions/TException.php
@@ -47,9 +47,9 @@ class TException extends Exception
protected function translateErrorMessage($key)
{
$lang=Prado::getPreferredLanguage();
- $msgFile=dirname(__FILE__).'/messages-'.$lang.'.txt';
+ $msgFile=Prado::getFrameworkPath().'/Exceptions/messages-'.$lang.'.txt';
if(!is_file($msgFile))
- $msgFile=dirname(__FILE__).'/messages.txt';
+ $msgFile=Prado::getFrameworkPath().'/Exceptions/messages.txt';
if(($entries=@file($msgFile))===false)
return $key;
else