summaryrefslogtreecommitdiff
path: root/lib/servererroraction.php
diff options
context:
space:
mode:
authorZach Copley <zach@status.net>2010-10-06 19:06:57 -0700
committerZach Copley <zach@status.net>2010-10-06 19:06:57 -0700
commitf71912440a17f468b1d60db2388fc6030631fce6 (patch)
treefda6f213af813df4f563773c7e5a25ab4b377187 /lib/servererroraction.php
parent5d5c4e8344ba8a16b7da36977693a3eec912880b (diff)
- New base InfoAction for dialog box like msgs
- Fix titles on error pages
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];
+ }
+
}