summaryrefslogtreecommitdiff
path: root/lib/error.php
diff options
context:
space:
mode:
authorEvan Prodromou <evan@status.net>2009-09-29 17:43:45 -0400
committerEvan Prodromou <evan@status.net>2009-09-29 17:57:55 -0400
commitb0ce2add41877091ba750b36387b45a476127526 (patch)
tree56ddc979d3932b5d07433e8813f58b9e32601d1e /lib/error.php
parent4312ea90aa46299bfd77454e441f9ecb867fadd1 (diff)
move HTTP error code strings to class variables
Diffstat (limited to 'lib/error.php')
-rw-r--r--lib/error.php6
1 files changed, 4 insertions, 2 deletions
diff --git a/lib/error.php b/lib/error.php
index 0c521db08..6a9b76be1 100644
--- a/lib/error.php
+++ b/lib/error.php
@@ -44,9 +44,10 @@ if (!defined('STATUSNET') && !defined('LACONICA')) {
*/
class ErrorAction extends Action
{
+ static $status = array();
+
var $code = null;
var $message = null;
- var $status = null;
var $default = null;
function __construct($message, $code, $output='php://output', $indent=true)
@@ -88,9 +89,10 @@ class ErrorAction extends Action
*
* @return page title
*/
+
function title()
{
- return $this->message;
+ return self::$status[$this->code];
}
function isReadOnly($args)