diff options
author | Joas Schilling <nickvergessen@gmx.de> | 2010-08-13 17:10:35 +0200 |
---|---|---|
committer | Joas Schilling <nickvergessen@gmx.de> | 2010-08-13 17:10:35 +0200 |
commit | 89b35f7ab9e9dc425d7fcac9cca3ea71da24b8d3 (patch) | |
tree | 79d7f64bcfbf3930e9f19f857b3d1c7363d1a487 | |
parent | 884cc2ac9b49ba88e448764b5e91cb99cf79df81 (diff) | |
download | forums-89b35f7ab9e9dc425d7fcac9cca3ea71da24b8d3.tar forums-89b35f7ab9e9dc425d7fcac9cca3ea71da24b8d3.tar.gz forums-89b35f7ab9e9dc425d7fcac9cca3ea71da24b8d3.tar.bz2 forums-89b35f7ab9e9dc425d7fcac9cca3ea71da24b8d3.tar.xz forums-89b35f7ab9e9dc425d7fcac9cca3ea71da24b8d3.zip |
[ticket/9519] Replace remaining is_writable() calls with phpbb_is_writable().
PHPBB3-9519
-rw-r--r-- | phpBB/adm/index.php | 2 | ||||
-rw-r--r-- | phpBB/includes/functions.php | 6 |
2 files changed, 4 insertions, 4 deletions
diff --git a/phpBB/adm/index.php b/phpBB/adm/index.php index 26f934f6bf..4c568cf441 100644 --- a/phpBB/adm/index.php +++ b/phpBB/adm/index.php @@ -533,7 +533,7 @@ function validate_config_vars($config_vars, &$cfg_array, &$error) // Check if the path is writable if ($config_definition['validate'] == 'wpath' || $config_definition['validate'] == 'rwpath') { - if (file_exists($phpbb_root_path . $cfg_array[$config_name]) && !@is_writable($phpbb_root_path . $cfg_array[$config_name])) + if (file_exists($phpbb_root_path . $cfg_array[$config_name]) && !phpbb_is_writable($phpbb_root_path . $cfg_array[$config_name])) { $error[] = sprintf($user->lang['DIRECTORY_NOT_WRITABLE'], $cfg_array[$config_name]); } diff --git a/phpBB/includes/functions.php b/phpBB/includes/functions.php index bc3d721de5..ba20b60737 100644 --- a/phpBB/includes/functions.php +++ b/phpBB/includes/functions.php @@ -701,7 +701,7 @@ function phpbb_chmod($filename, $perms = CHMOD_READ) clearstatcache(); - if (is_readable($filename) && is_writable($filename)) + if (is_readable($filename) && phpbb_is_writable($filename)) { break; } @@ -711,7 +711,7 @@ function phpbb_chmod($filename, $perms = CHMOD_READ) clearstatcache(); - if ((!($perms & CHMOD_READ) || is_readable($filename)) && (!($perms & CHMOD_WRITE) || is_writable($filename))) + if ((!($perms & CHMOD_READ) || is_readable($filename)) && (!($perms & CHMOD_WRITE) || phpbb_is_writable($filename))) { break; } @@ -721,7 +721,7 @@ function phpbb_chmod($filename, $perms = CHMOD_READ) clearstatcache(); - if ((!($perms & CHMOD_READ) || is_readable($filename)) && (!($perms & CHMOD_WRITE) || is_writable($filename))) + if ((!($perms & CHMOD_READ) || is_readable($filename)) && (!($perms & CHMOD_WRITE) || phpbb_is_writable($filename))) { break; } |