diff options
author | Andreas Fischer <bantu@phpbb.com> | 2010-08-28 23:34:18 +0200 |
---|---|---|
committer | Andreas Fischer <bantu@phpbb.com> | 2010-08-28 23:34:18 +0200 |
commit | e4ff780c1370d9f743da0fffc70b98be0c7cfe92 (patch) | |
tree | 00738becf05268632411007a93ff06407ca1917a /phpBB/includes/acm/acm_memory.php | |
parent | c4a65a469709a8ffdeb52f9d3556545993f2347a (diff) | |
parent | dbe8fb6488005c3295f839c7302a56f1de872426 (diff) | |
download | forums-e4ff780c1370d9f743da0fffc70b98be0c7cfe92.tar forums-e4ff780c1370d9f743da0fffc70b98be0c7cfe92.tar.gz forums-e4ff780c1370d9f743da0fffc70b98be0c7cfe92.tar.bz2 forums-e4ff780c1370d9f743da0fffc70b98be0c7cfe92.tar.xz forums-e4ff780c1370d9f743da0fffc70b98be0c7cfe92.zip |
Merge branch 'develop-olympus' into develop
* develop-olympus:
[ticket/9117] Wrong redirection after login.
[ticket/9772] Unify permissions for sending email when board_email_form is off
[ticket/7369] CPF date should always render the users selection.
[ticket/7296] Exporting styles to tar creates corrupted archives.
[ticket/9519] Replace remaining is_writable() calls with phpbb_is_writable().
[ticket/9519] Replace remaining is_writable() calls with phpbb_is_writable().
[ticket/9519] Replace remaining is_writable() calls with phpbb_is_writable().
[ticket/9519] Replace remaining is_writable() calls with phpbb_is_writable().
Diffstat (limited to 'phpBB/includes/acm/acm_memory.php')
-rw-r--r-- | phpBB/includes/acm/acm_memory.php | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/phpBB/includes/acm/acm_memory.php b/phpBB/includes/acm/acm_memory.php index efbfd4dd62..2936ea0bae 100644 --- a/phpBB/includes/acm/acm_memory.php +++ b/phpBB/includes/acm/acm_memory.php @@ -407,7 +407,13 @@ class acm_memory */ function remove_file($filename, $check = false) { - if ($check && !@is_writable($this->cache_dir)) + if (!function_exists('phpbb_is_writable')) + { + global $phpbb_root_path, $phpEx; + include($phpbb_root_path . 'includes/functions.' . $phpEx); + } + + 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); |