aboutsummaryrefslogtreecommitdiffstats
path: root/phpBB/includes/acm
diff options
context:
space:
mode:
authorOleg Pudeyev <oleg@bsdpower.com>2011-01-27 23:19:09 -0500
committerOleg Pudeyev <oleg@bsdpower.com>2011-01-28 15:31:41 -0500
commit5e97dd74c7a84869ac6f3b1bcd91122be8fddb50 (patch)
tree02357f9fb41199d2006ef065baa599f40de9e545 /phpBB/includes/acm
parent9dfb059e2ebd7413051a05687b08d7af886ab885 (diff)
downloadforums-5e97dd74c7a84869ac6f3b1bcd91122be8fddb50.tar
forums-5e97dd74c7a84869ac6f3b1bcd91122be8fddb50.tar.gz
forums-5e97dd74c7a84869ac6f3b1bcd91122be8fddb50.tar.bz2
forums-5e97dd74c7a84869ac6f3b1bcd91122be8fddb50.tar.xz
forums-5e97dd74c7a84869ac6f3b1bcd91122be8fddb50.zip
[ticket/10014] Clearly indicate fatal errors in file acm.
If acm_file cannot open the cache file for writing, it prints a message to that effect and calls die(). The message itself does not indicate that it is a fatal error, and someone seeing the message might expect that inability to write to cache is not fatal. Make it clear that the error is fatal by printing the word "Fatal" before the message. PHPBB3-10014
Diffstat (limited to 'phpBB/includes/acm')
-rw-r--r--phpBB/includes/acm/acm_file.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/phpBB/includes/acm/acm_file.php b/phpBB/includes/acm/acm_file.php
index 5c1876d006..524a28561e 100644
--- a/phpBB/includes/acm/acm_file.php
+++ b/phpBB/includes/acm/acm_file.php
@@ -88,11 +88,11 @@ class acm
if (!phpbb_is_writable($this->cache_dir))
{
// We need to use die() here, because else we may encounter an infinite loop (the message handler calls $cache->unload())
- die($this->cache_dir . ' is NOT writable.');
+ die('Fatal: ' . $this->cache_dir . ' is NOT writable.');
exit;
}
- die('Not able to open ' . $this->cache_dir . 'data_global.' . $phpEx);
+ die('Fatal: Not able to open ' . $this->cache_dir . 'data_global.' . $phpEx);
exit;
}