mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-31 17:16:18 +00:00
Removing non-used extract() from missingDatabase()
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@8000 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
157ee1efbf
commit
9aabc8c893
3 changed files with 1 additions and 5 deletions
|
@ -136,7 +136,6 @@ class ErrorHandler extends Object {
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function missingDatabase($params = array()) {
|
function missingDatabase($params = array()) {
|
||||||
extract($params, EXTR_OVERWRITE);
|
|
||||||
$this->stderr(__("Missing Database", true));
|
$this->stderr(__("Missing Database", true));
|
||||||
$this->_stop();
|
$this->_stop();
|
||||||
}
|
}
|
||||||
|
|
|
@ -213,8 +213,7 @@ class Cache extends Object {
|
||||||
function gc() {
|
function gc() {
|
||||||
$_this =& Cache::getInstance();
|
$_this =& Cache::getInstance();
|
||||||
$config = $_this->config();
|
$config = $_this->config();
|
||||||
extract($config);
|
$_this->_Engine[$config['engine']]->gc();
|
||||||
$_this->_Engine[$engine]->gc();
|
|
||||||
}
|
}
|
||||||
/**
|
/**
|
||||||
* Write data for key into cache
|
* Write data for key into cache
|
||||||
|
|
|
@ -230,8 +230,6 @@ class ErrorHandler extends Object {
|
||||||
* @access public
|
* @access public
|
||||||
*/
|
*/
|
||||||
function missingDatabase($params = array()) {
|
function missingDatabase($params = array()) {
|
||||||
extract($params, EXTR_OVERWRITE);
|
|
||||||
|
|
||||||
$this->controller->set(array(
|
$this->controller->set(array(
|
||||||
'title' => __('Scaffold Missing Database Connection', true)
|
'title' => __('Scaffold Missing Database Connection', true)
|
||||||
));
|
));
|
||||||
|
|
Loading…
Add table
Reference in a new issue