mirror of
https://github.com/kamilwylegala/cakephp2-php8.git
synced 2025-01-18 18:46:17 +00:00
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:
parent
8eccba69ce
commit
55e9a1eda6
2 changed files with 2 additions and 5 deletions
|
@ -957,8 +957,6 @@
|
|||
}
|
||||
} else if(is_writable(dirname($filename))) {
|
||||
file_put_contents($filename, $data);
|
||||
} else {
|
||||
return false;
|
||||
}
|
||||
return $data;
|
||||
}
|
||||
|
|
|
@ -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');
|
||||
}
|
||||
|
|
Loading…
Add table
Reference in a new issue