summaryrefslogtreecommitdiff
path: root/lib/error.php
diff options
context:
space:
mode:
authorBrion Vibber <brion@pobox.com>2009-10-13 16:45:26 +0000
committerBrion Vibber <brion@pobox.com>2009-10-13 16:45:26 +0000
commit834ac7aa1172518c112bbf90561ead34499e20b8 (patch)
tree474dc49eed8ff3542e6d2c8154e14fa4b8432ada /lib/error.php
parent18df82ba2302d5b72bc42f4d3296d6fff7d16341 (diff)
parent006cfc528edab32548d1265df5dada09a1536aed (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.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)