diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2010-08-10 16:11:39 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2010-08-10 16:11:39 +0200 |
commit | 4c95ed0eeb497d3febe3169614e9385cefa648d2 (patch) | |
tree | c65516aeb9bdb2aa8d8f2a5b111b8e95ddf8b45d /phpBB/includes/acm | |
parent | da256b33d93978f672aa07e0e94be585a7d1d2ee (diff) | |
download | forums-4c95ed0eeb497d3febe3169614e9385cefa648d2.tar forums-4c95ed0eeb497d3febe3169614e9385cefa648d2.tar.gz forums-4c95ed0eeb497d3febe3169614e9385cefa648d2.tar.bz2 forums-4c95ed0eeb497d3febe3169614e9385cefa648d2.tar.xz forums-4c95ed0eeb497d3febe3169614e9385cefa648d2.zip |
[ticket/9519] Replace remaining is_writable() calls with phpbb_is_writable().
acm_memory.php is untested. install/install_convert.php and
includes/functions_convert.php are going to be tested and committed afterwards.
PHPBB3-9519
Diffstat (limited to 'phpBB/includes/acm')
-rw-r--r-- | phpBB/includes/acm/acm_file.php | 4 | ||||
-rw-r--r-- | phpBB/includes/acm/acm_memory.php | 2 |
2 files changed, 3 insertions, 3 deletions
diff --git a/phpBB/includes/acm/acm_file.php b/phpBB/includes/acm/acm_file.php index 5a758aa2bb..add065ead1 100644 --- a/phpBB/includes/acm/acm_file.php +++ b/phpBB/includes/acm/acm_file.php @@ -79,7 +79,7 @@ class acm if (!$this->_write('data_global')) { // Now, this occurred how often? ... phew, just tell the user then... - if (!@is_writable($this->cache_dir)) + 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.'); @@ -707,7 +707,7 @@ class acm */ function remove_file($filename, $check = false) { - if ($check && !@is_writable($this->cache_dir)) + if ($check && !phpbb_is_writable($this->cache_dir)) { // E_USER_ERROR - not using language entry - intended. trigger_error('Unable to remove files within ' . $this->cache_dir . '. Please check directory permissions.', E_USER_ERROR); diff --git a/phpBB/includes/acm/acm_memory.php b/phpBB/includes/acm/acm_memory.php index efbfd4dd62..4e0f35f157 100644 --- a/phpBB/includes/acm/acm_memory.php +++ b/phpBB/includes/acm/acm_memory.php @@ -407,7 +407,7 @@ class acm_memory */ function remove_file($filename, $check = false) { - if ($check && !@is_writable($this->cache_dir)) + if ($check && !phpbb_is_writable($this->cache_dir)) { // E_USER_ERROR - not using language entry - intended. trigger_error('Unable to remove files within ' . $this->cache_dir . '. Please check directory permissions.', E_USER_ERROR); |