Prevent crash when trying to load the favicon during the setup !

SVN:trunk[1620]
This commit is contained in:
Denis Flaven
2011-09-29 15:22:52 +00:00
parent 0999f00912
commit 73968a5631

View File

@@ -413,7 +413,10 @@ class WebPage
}
echo "</style>\n";
}
echo "<link rel=\"shortcut icon\" href=\"".utils::GetAbsoluteUrlAppRoot()."images/favicon.ico\" />\n";
if (class_exists('MetaModel') && MetaModel::GetConfig())
{
echo "<link rel=\"shortcut icon\" href=\"".utils::GetAbsoluteUrlAppRoot()."images/favicon.ico\" />\n";
}
echo "</head>\n";
echo "<body>\n";
echo self::FilterXSS($this->s_content);