]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Merge branch 'master' into testing
authorEvan Prodromou <evan@controlyourself.ca>
Mon, 24 Aug 2009 15:28:16 +0000 (11:28 -0400)
committerEvan Prodromou <evan@controlyourself.ca>
Mon, 24 Aug 2009 15:28:16 +0000 (11:28 -0400)
Conflicts:
lib/rssaction.php
lib/twitterapi.php

index.php
lib/servererroraction.php

index 5f13064dabe8b070547d147c537c243821c92f98..2e74d38fb0ac29d46e01ab115727e93100680f0e 100644 (file)
--- a/index.php
+++ b/index.php
@@ -73,7 +73,7 @@ function handleError($error)
     exit(-1);
 }
 
-function checkMirror($action_obj)
+function checkMirror($action_obj, $args)
 {
     global $config;
 
@@ -198,7 +198,7 @@ function main()
     } else {
         $action_obj = new $action_class();
 
-        checkMirror($action_obj);
+        checkMirror($action_obj, $args);
 
         try {
             if ($action_obj->prepare($args)) {
index db735216685848daf9b436b8104a47c06e811dfe..c46f3228b0706044001d98f001c684a92471d0fb 100644 (file)
@@ -52,6 +52,7 @@ require_once INSTALLDIR.'/lib/error.php';
  * @license  http://www.fsf.org/licensing/licenses/agpl.html AGPLv3
  * @link     http://laconi.ca/
  */
+
 class ServerErrorAction extends ErrorAction
 {
     function __construct($message='Error', $code=500)
@@ -66,6 +67,10 @@ class ServerErrorAction extends ErrorAction
                                505 => 'HTTP Version Not Supported');
 
         $this->default = 500;
+
+        // Server errors must be logged.
+
+        common_log(LOG_ERR, "ServerErrorAction: $code $message");
     }
 
     // XXX: Should these error actions even be invokable via URI?