1
0
mirror of https://github.com/phpbb/phpbb.git synced 2025-07-30 13:30:25 +02:00

tiny alterations

git-svn-id: file:///svn/phpbb/trunk@6846 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
Meik Sievertsen
2007-01-06 19:37:09 +00:00
parent 962be6ed09
commit 48b76be50b
4 changed files with 26 additions and 5 deletions

View File

@@ -2580,7 +2580,7 @@ function get_remote_file($host, $directory, $filename, &$errstr, &$errno, $port
{
$get_info = true;
}
else if (strpos($line, '404 Not Found') !== false)
else if (stripos($line, '404 not found') !== false)
{
$errstr = $user->lang['FILE_NOT_FOUND'] . ': ' . $filename;
return false;
@@ -2593,11 +2593,13 @@ function get_remote_file($host, $directory, $filename, &$errstr, &$errno, $port
{
if ($errstr)
{
// convert possible localized errstr to utf8
// $errstr = utf8_convert_message($errstr);
return false;
}
else
{
$errstr = 'fsock disabled';
$errstr = $user->lang['FSOCK_DISABLED'];
return false;
}
}