mirror of
https://github.com/phpbb/phpbb.git
synced 2025-07-30 21:40:43 +02:00
"Fix" for realpath and Lycos?
git-svn-id: file:///svn/phpbb/branches/phpBB-2_0_0@3222 89ea8834-ac86-4346-8a33-228a782c2dd0
This commit is contained in:
@@ -205,7 +205,7 @@ function guess_lang()
|
||||
{
|
||||
if (preg_match('#' . $match . '#i', trim($accept_lang_ary[$i])))
|
||||
{
|
||||
if (file_exists(@realpath($phpbb_root_path . 'language/lang_' . $lang)))
|
||||
if (file_exists(@phpbb_realpath($phpbb_root_path . 'language/lang_' . $lang)))
|
||||
{
|
||||
return $lang;
|
||||
}
|
||||
@@ -435,7 +435,7 @@ else
|
||||
}
|
||||
|
||||
// Open config.php ... if it exists
|
||||
if (@file_exists(@realpath('config.'.$phpEx)))
|
||||
if (@file_exists(@phpbb_realpath('config.'.$phpEx)))
|
||||
{
|
||||
include($phpbb_root_path.'config.'.$phpEx);
|
||||
}
|
||||
|
Reference in New Issue
Block a user