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

SVN:1.2[1621]
This commit is contained in:
Denis Flaven
2011-09-29 15:27:25 +00:00
parent d04c6bccd5
commit 398e294604

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);