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:
phpnut 2007-01-14 01:29:20 +00:00
parent bcd2a951e4
commit 2ef3e325ca

View file

@ -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";