aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acm
diff options
context:
space:
mode:
authorMeik Sievertsen <acydburn@phpbb.com>2006-09-24 14:43:33 +0000
committerMeik Sievertsen <acydburn@phpbb.com>2006-09-24 14:43:33 +0000
commit287fe750eacafce1335de67db14a460104649d5d (patch)
tree88cd5576f8d73a4f025ef5e73d776ac4ca8caef2 /phpBB/includes/acm
parent46c961b5f57d0580d41b03673c4af1f0eaae0e0a (diff)
downloadforums-287fe750eacafce1335de67db14a460104649d5d.tar
forums-287fe750eacafce1335de67db14a460104649d5d.tar.gz
forums-287fe750eacafce1335de67db14a460104649d5d.tar.bz2
forums-287fe750eacafce1335de67db14a460104649d5d.tar.xz
forums-287fe750eacafce1335de67db14a460104649d5d.zip
i am tired of the support requests for those having changed the permissions of the cache folder on an update (not intentionally most of the time though)
git-svn-id: file:///svn/phpbb/trunk@6403 89ea8834-ac86-4346-8a33-228a782c2dd0
Diffstat (limited to 'phpBB/includes/acm')
-rw-r--r--phpBB/includes/acm/acm_file.php10
1 files changed, 10 insertions, 0 deletions
diff --git a/phpBB/includes/acm/acm_file.php b/phpBB/includes/acm/acm_file.php
index 8ba51780eb..0797b9d79d 100644
--- a/phpBB/includes/acm/acm_file.php
+++ b/phpBB/includes/acm/acm_file.php
@@ -80,6 +80,16 @@ class acm
@flock($fp, LOCK_UN);
fclose($fp);
}
+ else
+ {
+ // Now, this occurred how often? ... phew, just tell the user then...
+ if (!@is_writeable($this->cache_dir))
+ {
+ trigger_error($this->cache_dir . ' is NOT writeable.', E_USER_ERROR);
+ }
+
+ trigger_error('Not able to open ' . $this->cache_dir . 'data_global.' . $phpEx, E_USER_ERROR);
+ }
$this->is_modified = false;
}