mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 09:06:17 +00:00
Fixing error when using AuthComponent and DEBUG < 1
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4879 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
35c7807cc3
commit
575dafe60a
2 changed files with 6 additions and 3 deletions
|
@ -232,7 +232,10 @@ class AuthComponent extends Object {
|
||||||
CAKE_ADMIN . '_delete' => 'delete'
|
CAKE_ADMIN . '_delete' => 'delete'
|
||||||
));
|
));
|
||||||
}
|
}
|
||||||
Debugger::checkSessionKey();
|
if(Configure::read() > 0) {
|
||||||
|
uses('debugger');
|
||||||
|
Debugger::checkSessionKey();
|
||||||
|
}
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Main execution method. Handles redirecting of invalid users, and processing
|
* Main execution method. Handles redirecting of invalid users, and processing
|
||||||
|
|
|
@ -191,10 +191,10 @@ class Debugger extends Object {
|
||||||
if (Configure::read('log')) {
|
if (Configure::read('log')) {
|
||||||
CakeLog::write($level, "{$error} ({$code}): {$description} in [{$file}, line {$line}]");
|
CakeLog::write($level, "{$error} ({$code}): {$description} in [{$file}, line {$line}]");
|
||||||
}
|
}
|
||||||
|
|
||||||
if ($error == 'Fatal Error') {
|
if ($error == 'Fatal Error') {
|
||||||
die();
|
die();
|
||||||
}
|
}
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
|
|
Loading…
Add table
Reference in a new issue