diff --git a/cake/basics.php b/cake/basics.php index 95f8ca1eb..de96709cb 100644 --- a/cake/basics.php +++ b/cake/basics.php @@ -957,8 +957,6 @@ } } else if(is_writable(dirname($filename))) { file_put_contents($filename, $data); - } else { - return false; } return $data; } diff --git a/cake/libs/configure.php b/cake/libs/configure.php index 485127171..fc86a2f19 100644 --- a/cake/libs/configure.php +++ b/cake/libs/configure.php @@ -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', "