diff options
author | Evan Prodromou <evan@status.net> | 2009-09-29 17:43:45 -0400 |
---|---|---|
committer | Evan Prodromou <evan@status.net> | 2009-09-29 17:43:45 -0400 |
commit | 5252c438040f071e0c61a9c93152dcf1aa382504 (patch) | |
tree | 6b454e51938b380f5e8e6342bd323f04574c9eb8 /lib/error.php | |
parent | 155ba6c103b3672656937ad36bec02cb9c7834e5 (diff) |
move HTTP error code strings to class variables
Diffstat (limited to 'lib/error.php')
-rw-r--r-- | lib/error.php | 6 |
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) |