summaryrefslogtreecommitdiff
path: root/lib/servererroraction.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-10-18 15:21:02 -0700
committerBrion Vibber <brion@pobox.com>2010-10-18 15:21:02 -0700
commit53d45d7ffbe6bcdf336a0e666942557c11cf909b (patch)
tree7c26b636624162fd1036529ecc08ae63caef59f6 /lib/servererroraction.php
parent9a35e48ee2a15ded31dd1dba8e0af9071e8a28ac (diff)
parent39cfdf0d8b333fec0c35e02d3ce9abb4f4338bf5 (diff)
Merge branch '0.9.x'
Diffstat (limited to 'lib/servererroraction.php')
-rw-r--r--lib/servererroraction.php23
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];
+ }
+
}