summaryrefslogtreecommitdiff
path: root/framework/Web/Services
diff options
context:
space:
mode:
authorxue <>2005-11-18 18:52:28 +0000
committerxue <>2005-11-18 18:52:28 +0000
commit6b647694bdae2ab37246447cb965a5e7f97290ed (patch)
tree613b45d1b39c5ea643eef0a1801b8ea5dc376095 /framework/Web/Services
parent47e6ce79dfaa25397c8d1bfec2134f17c894ed87 (diff)
Diffstat (limited to 'framework/Web/Services')
-rw-r--r--framework/Web/Services/TPageService.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/framework/Web/Services/TPageService.php b/framework/Web/Services/TPageService.php
index 0ed4c67f..df239088 100644
--- a/framework/Web/Services/TPageService.php
+++ b/framework/Web/Services/TPageService.php
@@ -97,7 +97,7 @@ class TPageService extends TComponent implements IService
if(empty($this->_pagePath))
$this->_pagePath=$this->_defaultPage;
if(empty($this->_pagePath))
- throw new THttpException('pageservice_page_required');
+ throw new THttpException(400,'pageservice_page_required');
if(($cache=$application->getCache())===null)
{
@@ -328,7 +328,7 @@ class TPageService extends TComponent implements IService
if(class_exists($className,false))
$page=new $className($this->_properties);
else
- throw new THttpException('pageservice_page_unknown',$this->_pageType);
+ throw new THttpException(404,'pageservice_page_unknown',$this->_pageType);
$writer=new THtmlTextWriter($this->_application->getResponse());
$page->run($writer);
$writer->flush();
@@ -653,7 +653,7 @@ class TPageConfiguration extends TComponent
}
}
if($page!==null && $this->_pageType===null)
- throw new THttpException('pageservice_page_inexistent',$page);
+ throw new THttpException(404,'pageservice_page_unknown',$page);
}
}