Skip to content

Commit

Permalink
Removing ini_set() in project root.
Browse files Browse the repository at this point in the history
Fixing notice errors that would happen when mod_rewrite wasn't enabled.
  • Loading branch information
markstory committed Nov 14, 2010
1 parent 27287e4 commit b91566d
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 13 deletions.
2 changes: 1 addition & 1 deletion app/webroot/index.php
Expand Up @@ -76,5 +76,5 @@
} else {
require LIBS . 'dispatcher.php';
$Dispatcher = new Dispatcher();
$Dispatcher->dispatch(new CakeRequest($_GET['url']));
$Dispatcher->dispatch(new CakeRequest(isset($_GET['url']) ? $_GET['url'] : null));
}
2 changes: 1 addition & 1 deletion cake/console/templates/skel/webroot/index.php
Expand Up @@ -76,5 +76,5 @@
} else {
require LIBS . 'dispatcher.php';
$Dispatcher = new Dispatcher();
$Dispatcher->dispatch(new CakeRequest($_GET['url']));
$Dispatcher->dispatch(new CakeRequest(isset($_GET['url']) ? $_GET['url'] : null));
}
14 changes: 3 additions & 11 deletions index.php
Expand Up @@ -41,15 +41,7 @@
/**
* Set the include path or define app and core path
*/
if (function_exists('ini_set')) {
ini_set('include_path',
ini_get('include_path') . PATH_SEPARATOR . CAKE_CORE_INCLUDE_PATH
. PATH_SEPARATOR . ROOT . DS . APP_DIR . DS
);
define('APP_PATH', null);
define('CORE_PATH', null);
} else {
define('APP_PATH', ROOT . DS . APP_DIR . DS);
define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
}
define('APP_PATH', ROOT . DS . APP_DIR . DS);
define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);

require APP_DIR . DS . WEBROOT_DIR . DS . 'index.php';

0 comments on commit b91566d

Please sign in to comment.