Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion classes/controller/devtools.php
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public function action_routetest()
if ( ! $url)
{
// Try to find a config file
$url = Kohana::config('route-test');
$url = Kohana::$config->load('route-test');
}
$this->template->content = View::factory('devtools/route-test',array(
// Get all the tests
Expand Down
3 changes: 2 additions & 1 deletion classes/devtools/route/tester.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,8 @@ public static function create_tests($tests)
// Test each route, and save the route and params if it matches
foreach (Route::all() as $route)
{
if ($current->params = $route->matches($current->url))
$request = Request::factory($current->url);
if ($current->params = $route->matches($request))
{
$current->route = Route::name($route);
$current->params = array_merge(array('route'=>$current->route),$current->params);
Expand Down
2 changes: 1 addition & 1 deletion views/devtools/config.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

try
{
echo Debug::dump(Kohana::config($name));
echo Debug::dump(Kohana::$config->load($name));
}
catch (exception $e)
{
Expand Down