mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-03-12 20:49:50 +00:00
Changed Configure::_ _writeConfig() to use instance from getInstance().
git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4292 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
parent
bcd2a951e4
commit
2ef3e325ca
1 changed files with 2 additions and 2 deletions
|
@ -283,8 +283,8 @@ class Configure extends Object {
|
|||
*/
|
||||
function __writeConfig($content, $name, $write = true){
|
||||
$file = CACHE . 'persistent' . DS . $name . '.php';
|
||||
|
||||
if (Configure::read() > 0) {
|
||||
$_this =& Configure::getInstance();
|
||||
if ($_this->read() > 0) {
|
||||
$expires = "+10 seconds";
|
||||
} else {
|
||||
$expires = "+999 days";
|
||||
|
|
Loading…
Add table
Reference in a new issue