summaryrefslogtreecommitdiff
path: root/lib/servererroraction.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2010-10-15 11:40:40 -0700
committerBrion Vibber <brion@pobox.com>2010-10-15 11:40:40 -0700
commit4c3aebd39644d913df4abdb69b848413ca65c298 (patch)
tree5356dcfd6f4bc43768f4b66ef4a207ac04ae1b6d /lib/servererroraction.php
parent71ed82ed9656618873dde4e41314de29158e5fe9 (diff)
parenta7d98435f649da268f728825e64eb673c451e242 (diff)
Merge branch '1.0.x' into schema-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];
+ }
+
}