Skip to content

Commit

Permalink
Modifying index.php so the framework is able to bootstrap itself again
Browse files Browse the repository at this point in the history
  • Loading branch information
lorenzo committed Dec 8, 2010
1 parent 1c368ab commit 09120b7
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions app/webroot/index.php
Expand Up @@ -50,7 +50,7 @@
*
*/
if (!defined('CAKE_CORE_INCLUDE_PATH')) {
define('CAKE_CORE_INCLUDE_PATH', ROOT);
define('CAKE_CORE_INCLUDE_PATH', ROOT . DS .'lib');
}

/**
Expand All @@ -74,7 +74,7 @@
if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') {
return;
} else {
require LIBS . 'dispatcher.php';
require LIBS . 'Routing' . DS .'Dispatcher.php';
$Dispatcher = new Dispatcher();
$Dispatcher->dispatch(new CakeRequest(isset($_GET['url']) ? $_GET['url'] : null));
}

0 comments on commit 09120b7

Please sign in to comment.