From 8eccba69ce98e9721cd91fa7807df959e65d9309 Mon Sep 17 00:00:00 2001 From: gwoo Date: Fri, 12 Jan 2007 16:37:56 +0000 Subject: [PATCH] adding a return false to cache and configure git-svn-id: https://svn.cakephp.org/repo/branches/1.2.x.x@4285 3807eeeb-6ff5-0310-8944-8be069107fe0 --- cake/basics.php | 2 ++ cake/libs/configure.php | 5 +++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/cake/basics.php b/cake/basics.php index de96709cb..95f8ca1eb 100644 --- a/cake/basics.php +++ b/cake/basics.php @@ -957,6 +957,8 @@ } } 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 fc86a2f19..485127171 100644 --- a/cake/libs/configure.php +++ b/cake/libs/configure.php @@ -283,10 +283,11 @@ class Configure extends Object { */ function __writeConfig($content, $name, $write = true){ $file = CACHE . 'persistent' . DS . $name . '.php'; + $cached = false; if(!file_exists($file)){ - cache('persistent' . DS . $name . '.php', "