mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-28 06:08:52 +00:00
[ticket/9519] Replace remaining is_writable() calls with phpbb_is_writable().
includes/functions_convert.php and install/install_convert.php tested by Dicky. PHPBB3-9519
This commit is contained in:
parent
4c95ed0eeb
commit
884cc2ac9b
2 changed files with 4 additions and 4 deletions
|
@ -2306,7 +2306,7 @@ function copy_file($src, $trg, $overwrite = false, $die_on_failure = true, $sour
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!is_writable($path))
|
if (!phpbb_is_writable($path))
|
||||||
{
|
{
|
||||||
@chmod($path, 0777);
|
@chmod($path, 0777);
|
||||||
}
|
}
|
||||||
|
@ -2341,7 +2341,7 @@ function copy_dir($src, $trg, $copy_subdirs = true, $overwrite = false, $die_on_
|
||||||
@chmod($trg_path, 0777);
|
@chmod($trg_path, 0777);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!@is_writable($trg_path))
|
if (!phpbb_is_writable($trg_path))
|
||||||
{
|
{
|
||||||
$bad_dirs[] = path($config['script_path']) . $trg;
|
$bad_dirs[] = path($config['script_path']) . $trg;
|
||||||
}
|
}
|
||||||
|
@ -2408,7 +2408,7 @@ function copy_dir($src, $trg, $copy_subdirs = true, $overwrite = false, $die_on_
|
||||||
@chmod($trg_path . $dir, 0777);
|
@chmod($trg_path . $dir, 0777);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!@is_writable($trg_path . $dir))
|
if (!phpbb_is_writable($trg_path . $dir))
|
||||||
{
|
{
|
||||||
$bad_dirs[] = $trg . $dir;
|
$bad_dirs[] = $trg . $dir;
|
||||||
$bad_dirs[] = $trg_path . $dir;
|
$bad_dirs[] = $trg_path . $dir;
|
||||||
|
|
|
@ -835,7 +835,7 @@ class install_convert extends module
|
||||||
$this->p_master->error($user->lang['DEV_NO_TEST_FILE'], __LINE__, __FILE__);
|
$this->p_master->error($user->lang['DEV_NO_TEST_FILE'], __LINE__, __FILE__);
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!$local_path || !@is_writable($phpbb_root_path . $local_path))
|
if (!$local_path || !phpbb_is_writable($phpbb_root_path . $local_path))
|
||||||
{
|
{
|
||||||
if (!$local_path)
|
if (!$local_path)
|
||||||
{
|
{
|
||||||
|
|
Loading…
Add table
Reference in a new issue