diff options
Diffstat (limited to 'framework')
-rw-r--r-- | framework/Exceptions/TException.php | 4 | ||||
-rw-r--r-- | framework/Web/Services/TPageService.php | 5 | ||||
-rw-r--r-- | framework/Web/UI/WebControls/TImageButton.php | 2 |
3 files changed, 8 insertions, 3 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
diff --git a/framework/Web/Services/TPageService.php b/framework/Web/Services/TPageService.php index 3c57cfc3..79f81bcd 100644 --- a/framework/Web/Services/TPageService.php +++ b/framework/Web/Services/TPageService.php @@ -344,6 +344,11 @@ class TPageService extends TComponent implements IService throw new TConfigurationException('pageservice_basepath_invalid',$value);
}
+ protected function createHtmlTextWriter()
+ {
+ $writer=new THtmlTextWriter($this->_application->getResponse());
+ }
+
/**
* Runs the service.
* This will create the requested page, initializes it with the property values
diff --git a/framework/Web/UI/WebControls/TImageButton.php b/framework/Web/UI/WebControls/TImageButton.php index 6452c651..34ab4375 100644 --- a/framework/Web/UI/WebControls/TImageButton.php +++ b/framework/Web/UI/WebControls/TImageButton.php @@ -13,7 +13,7 @@ /**
* TImage class file
*/
-require_once(dirname(__FILE__).'/TImage.php');
+Prado::using('System.Web.UI.WebControls.TImage');
/**
* TImageButton class
|