mirror of
https://github.com/phpbb/phpbb.git
synced 2025-06-27 21:58:52 +00:00
ah. Where did those line breaks go?
git-svn-id: file:///svn/phpbb/trunk@7393 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
parent
99b9d56ba8
commit
c4cae36c91
1 changed files with 2 additions and 0 deletions
|
@ -2150,6 +2150,7 @@ function convert_bbcode($message, $convert_size = true, $extended_bbcodes = fals
|
||||||
function copy_file($src, $trg, $overwrite = false, $die_on_failure = true, $source_relative_path = true)
|
function copy_file($src, $trg, $overwrite = false, $die_on_failure = true, $source_relative_path = true)
|
||||||
{
|
{
|
||||||
global $convert, $phpbb_root_path, $config, $user, $db;
|
global $convert, $phpbb_root_path, $config, $user, $db;
|
||||||
|
|
||||||
if (substr($trg, -1) == '/')
|
if (substr($trg, -1) == '/')
|
||||||
{
|
{
|
||||||
$trg .= basename($src);
|
$trg .= basename($src);
|
||||||
|
@ -2161,6 +2162,7 @@ function copy_file($src, $trg, $overwrite = false, $die_on_failure = true, $sour
|
||||||
{
|
{
|
||||||
return true;
|
return true;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!@file_exists($src_path))
|
if (!@file_exists($src_path))
|
||||||
{
|
{
|
||||||
return;
|
return;
|
||||||
|
|
Loading…
Add table
Reference in a new issue