Adding core load error in webroot/index, and updating setting for debug reference in Auth

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4591 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
nate 2007-03-05 15:14:35 +00:00
parent fd3e9fe9f8
commit 8131f2a55c
2 changed files with 4 additions and 2 deletions

View file

@ -74,7 +74,9 @@
define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS); define('CORE_PATH', CAKE_CORE_INCLUDE_PATH . DS);
} }
} }
require CORE_PATH . 'cake' . DS . 'bootstrap.php'; if (!include(CORE_PATH . 'cake' . DS . 'bootstrap.php')) {
trigger_error("Can't find CakePHP core. Check the value of CAKE_CORE_INCLUDE_PATH in app/webroot/index.php. It should point to the directory containing your " . DS . "cake core directory and your " . DS . "vendors root directory." , E_USER_ERROR);
}
if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') { if (isset($_GET['url']) && $_GET['url'] === 'favicon.ico') {
} else { } else {
$Dispatcher=new Dispatcher(); $Dispatcher=new Dispatcher();

View file

@ -231,7 +231,7 @@ class AuthComponent extends Object {
* @return void * @return void
*/ */
function startup(&$controller) { function startup(&$controller) {
if (low($controller->name) == 'app' || (low($controller->name) == 'tests' && DEBUG > 0)) { if (low($controller->name) == 'app' || (low($controller->name) == 'tests' && Configure::read() > 0)) {
return; return;
} }
if (!$this->_setDefaults()) { if (!$this->_setDefaults()) {