From 48b76be50b4f7c9e6e5a627887534d9115419afd Mon Sep 17 00:00:00 2001 From: Meik Sievertsen Date: Sat, 6 Jan 2007 19:37:09 +0000 Subject: tiny alterations git-svn-id: file:///svn/phpbb/trunk@6846 89ea8834-ac86-4346-8a33-228a782c2dd0 --- phpBB/includes/functions_admin.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) (limited to 'phpBB/includes/functions_admin.php') diff --git a/phpBB/includes/functions_admin.php b/phpBB/includes/functions_admin.php index f32bf00254..f1d51c8d71 100644 --- a/phpBB/includes/functions_admin.php +++ b/phpBB/includes/functions_admin.php @@ -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; } } -- cgit v1.2.1