diff options
author | xue <> | 2005-11-22 12:49:21 +0000 |
---|---|---|
committer | xue <> | 2005-11-22 12:49:21 +0000 |
commit | 75d146ca341c0e0b92e8dcd180fbac352155644a (patch) | |
tree | 53a9a2aa3bbe1832a1fa91e035c3bb97c8414001 /framework/Exceptions/TException.php | |
parent | 12a74128ad47e706fd0acc6a3367cbe8bd4e7f1e (diff) |
Diffstat (limited to 'framework/Exceptions/TException.php')
-rw-r--r-- | framework/Exceptions/TException.php | 4 |
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
|