Reverting changes from [4285]

git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4286 3807eeeb-6ff5-0310-8944-8be069107fe0
This commit is contained in:
phpnut 2007-01-12 17:25:56 +00:00
parent 8eccba69ce
commit 55e9a1eda6
2 changed files with 2 additions and 5 deletions

View file

@ -957,8 +957,6 @@
}
} else if(is_writable(dirname($filename))) {
file_put_contents($filename, $data);
} else {
return false;
}
return $data;
}

View file

@ -283,11 +283,10 @@ class Configure extends Object {
*/
function __writeConfig($content, $name, $write = true){
$file = CACHE . 'persistent' . DS . $name . '.php';
$cached = false;
if(!file_exists($file)){
$cached = cache('persistent' . DS . $name . '.php', "<?php\n\$config = array();\n");
cache('persistent' . DS . $name . '.php', "<?php\n\$config = array();\n");
}
if($write === true && $cached){
if($write === true){
if(!class_exists('File')){
uses('File');
}