summaryrefslogtreecommitdiff
path: root/framework
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
parent12a74128ad47e706fd0acc6a3367cbe8bd4e7f1e (diff)
Diffstat (limited to 'framework')
-rw-r--r--framework/Exceptions/TException.php4
-rw-r--r--framework/Web/Services/TPageService.php5
-rw-r--r--framework/Web/UI/WebControls/TImageButton.php2
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