]> git.mxchange.org Git - quix0rs-gnu-social.git/blobdiff - lib/error.php
Revert "Revert "mod_rewrite rule for getfile""
[quix0rs-gnu-social.git] / lib / error.php
index 554156e53ea39786abc4126b2db3737a3f21baa5..6a9b76be11b97391f41ac13292ed76f38bdeba2a 100644 (file)
@@ -29,7 +29,7 @@
  * along with this program.  If not, see <http://www.gnu.org/licenses/>.
  */
 
-if (!defined('LACONICA')) {
+if (!defined('STATUSNET') && !defined('LACONICA')) {
     exit(1);
 }
 
@@ -44,9 +44,10 @@ if (!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)