Skip to content

Commit

Permalink
straggling NotFoundException replaced with MoorNotFoundException
Browse files Browse the repository at this point in the history
  • Loading branch information
Jeff Turcotte authored and Jeff Turcotte committed Jun 18, 2010
1 parent 95ec8f0 commit 8601604
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Moor.php
Expand Up @@ -205,11 +205,9 @@ public static function linkTo($key) {
}

if (!isset(self::$cache->link_to[$key])) {

//self::$cache_for_linkTo[$key] = FALSE;

$best_route = NULL;
$param_names = preg_split('/(?<=[^:])(\s*:)(?!:)/', $callback_string);
$param_names = preg_split('/(\s+:)|(\s+)|((?<=[^:]):(?!:))/', $callback_string);
$callback_string = array_shift($param_names);
$param_names_flipped = array_flip($param_names);
$callback_params = array();
Expand Down Expand Up @@ -590,7 +588,7 @@ public static function triggerContinue() {
* @return void
*/
public static function triggerNotFound() {
throw new NotFoundException();
throw new MoorNotFoundException();
}

// ===============
Expand Down

0 comments on commit 8601604

Please sign in to comment.