]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
Don't LOG_ERR missing paths (misspelling clients aren't errors)
authorMikael Nordfeldth <mmn@hethane.se>
Thu, 14 Jan 2016 01:22:47 +0000 (02:22 +0100)
committerMikael Nordfeldth <mmn@hethane.se>
Thu, 14 Jan 2016 01:22:47 +0000 (02:22 +0100)
lib/router.php

index 28ee42662df5e3ec966f9400c38d422d9b1d1c35..bb87233b376213a02420c3c45fbeab1740db97e2 100644 (file)
@@ -27,9 +27,7 @@
  * @link      http://status.net/
  */
 
-if (!defined('STATUSNET') && !defined('LACONICA')) {
-    exit(1);
-}
+if (!defined('GNUSOCIAL')) { exit(1); }
 
 /**
  * URL Router
@@ -1098,11 +1096,9 @@ class Router
         try {
             $match = $this->m->match($path);
         } catch (Exception $e) {
-            common_log(LOG_ERR, "Problem getting route for $path - " .
-                       $e->getMessage());
+            common_debug('Problem getting route for '._ve($path).' - '._ve($e->getMessage()));
             // TRANS: Client error on action trying to visit a non-existing page.
-            $cac = new ClientErrorAction(_('Page not found.'), 404);
-            $cac->showPage();
+            throw new ClientException(_('Page not found.'), 404);
         }
 
         return $match;