Fatal error: Cannot redeclare check_for_file() (previously declared in forum\includes\functions_flag.php:24) in forum\includes\functions_flag.php on line 34
I have double/triple checked all my coding and there is nothing out of place from the installation guide.
If i remove the index.php entry to include functions_flag, the error disappears.
Code: Select all
function check_for_file()
{
global $user, $phpEx, $phpbb_root_path;
$lang_path = $phpbb_root_path . '/language/' . $user->data['user_lang'] . '/';
$file = 'flag_lang' . $phpEx;
// check for the lang file being there
if (file_exists($lang_path . $file))
{
return true;
}
return false;
}
The closing tag below return false; is line 34
Hope someone can help.