Skip to content
This repository has been archived by the owner on Nov 2, 2018. It is now read-only.

Commit

Permalink
Renamed routes_original to original_routes for consistency
Browse files Browse the repository at this point in the history
  • Loading branch information
hassankhan committed Dec 18, 2013
1 parent 2ffa502 commit 82e7131
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions library/Zepto/Router.php
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ class Router
*
* @var array
*/
protected $routes_original = array();
protected $original_routes = array();

/**
* A sanitized version of the URL, excluding the domain and base component
Expand Down Expand Up @@ -186,7 +186,7 @@ public function run()
$this->callback = $callback;

// Return the callback and params, useful for unit testing
return array('callback' => $callback, 'params' => $params, 'route' => $route, 'original_route' => $this->routes_original[$request_method][$route]);
return array('callback' => $callback, 'params' => $params, 'route' => $route, 'original_route' => $this->original_routes[$request_method][$route]);
}
}
}
Expand Down Expand Up @@ -287,7 +287,7 @@ public function route($route, $callback, $request_method = 'GET')

// Add the route to our routing array
$this->routes[$request_method][$route] = $callback;
$this->routes_original[$request_method][$route] = $original_route;
$this->original_routes[$request_method][$route] = $original_route;

return true;
}
Expand Down

0 comments on commit 82e7131

Please sign in to comment.