diff options
author | Brion Vibber <brion@pobox.com> | 2010-10-18 15:21:02 -0700 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2010-10-18 15:21:02 -0700 |
commit | 53d45d7ffbe6bcdf336a0e666942557c11cf909b (patch) | |
tree | 7c26b636624162fd1036529ecc08ae63caef59f6 /lib/servererroraction.php | |
parent | 9a35e48ee2a15ded31dd1dba8e0af9071e8a28ac (diff) | |
parent | 39cfdf0d8b333fec0c35e02d3ce9abb4f4338bf5 (diff) |
Merge branch '0.9.x'
Diffstat (limited to 'lib/servererroraction.php')
-rw-r--r-- | lib/servererroraction.php | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/lib/servererroraction.php b/lib/servererroraction.php index 9b5a553dc..54cc99099 100644 --- a/lib/servererroraction.php +++ b/lib/servererroraction.php @@ -96,4 +96,27 @@ class ServerErrorAction extends ErrorAction $this->showPage(); } + + /** + * To specify additional HTTP headers for the action + * + * @return void + */ + function extraHeaders() + { + $status_string = @self::$status[$this->code]; + header('HTTP/1.1 '.$this->code.' '.$status_string); + } + + /** + * Page title. + * + * @return page title + */ + + function title() + { + return @self::$status[$this->code]; + } + } |