20.05.2006, 15:42
Code:
<html lang="de">
Das Problem dabei: Das ist kein korrektes XHTML und ich konnte diese Zeile nirgendwo im Template finden. Wo kann man das ändern?
<html lang="de">
function parsepage($contents)
{
global $db, $lang, $settings, $theme, $mybb, $mybbuser, $mybbgroup, $htmldoctype;
global $loadpmpopup;
$contents = str_replace("<navigation>", buildnav(1), $contents);
if($htmldoctype)
{
$contents = $htmldoctype.$contents;
}
else
{
$contents = "<!DOCTYPE html PUBLIC \"-//W3C//DTD XHTML 1.0 Transitional//EN\" \"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd\">\n".$contents;
}
if($lang->settings['rtl'] == 1)
{
$contents = str_replace("<html", "<html dir=\"rtl\"", $contents);
}
if($lang->settings['htmllang'])
{
$contents = str_replace("<html", "<html lang=\"".$lang->settings['htmllang']."\"", $contents);
}
if($loadpmpopup)
{
if(substr($_SERVER['PHP_SELF'], -strlen("private.php")) != "private.php")
{
$contents = str_replace("<body", "<body onload=\"Javascript:newPM()\"", $contents);
}
}
return $contents;
}
$langinfo['htmllang'] = "de";