Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

fixed issue with default not found callback

  • Loading branch information...
commit 589003e8bcb83f6b999955c60c2a840527b444e2 1 parent cf74111
@jeffturcotte authored
Showing with 3 additions and 3 deletions.
  1. +3 −3 Moor.php
View
6 Moor.php
@@ -1213,7 +1213,7 @@ private static function parseUrl($url_string)
*
* @return void
*/
- protected static function routeNotFoundCallback()
+ public static function routeNotFoundCallback()
{
header("HTTP/1.1 404 Not Found");
echo '<h1>NOT FOUND</h1>';
@@ -1313,8 +1313,8 @@ private static function validateMethodCallback($callback)
self::$messages[] = 'Continue. Method ' . $callback . ' doesn\'t exist.';
self::triggerContinue();
}
-
- if (!$class->isSubclassOf('MoorAbstractController')) {
+
+ if ($class->getName() != 'Moor' && !$class->isSubclassOf('MoorAbstractController')) {
self::$messages[] = 'Continue. Class for method ' . $callback . '. isn\'t a subclass of MoorAbstractController.';
self::triggerContinue();
}

0 comments on commit 589003e

Please sign in to comment.
Something went wrong with that request. Please try again.