diff options
author | Brion Vibber <brion@pobox.com> | 2009-10-13 16:45:26 +0000 |
---|---|---|
committer | Brion Vibber <brion@pobox.com> | 2009-10-13 16:45:26 +0000 |
commit | 834ac7aa1172518c112bbf90561ead34499e20b8 (patch) | |
tree | 474dc49eed8ff3542e6d2c8154e14fa4b8432ada /lib/error.php | |
parent | 18df82ba2302d5b72bc42f4d3296d6fff7d16341 (diff) | |
parent | 006cfc528edab32548d1265df5dada09a1536aed (diff) |
Merge branch '0.8.x' of git@gitorious.org:~brion/statusnet/brion-fixes into 0.8.x
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) |