Skip to content
Permalink
Browse files

Removing ini_set() in project root.

Fixing notice errors that would happen when mod_rewrite wasn't enabled.
  • Loading branch information...
markstory committed Nov 14, 2010
1 parent 27287e4 commit b91566d35fd20a428ad97ec9498f7c91ee779413
Showing with 5 additions and 13 deletions.
  1. +1 −1 app/webroot/index.php
  2. +1 −1 cake/console/templates/skel/webroot/index.php
  3. +3 −11 index.php
@@ -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));
}
@@ -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));
}
@@ -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.
You can’t perform that action at this time.