per-theme favicon possibilities

This commit is contained in:
Shish 2012-02-12 11:40:00 +00:00
parent 5241ed24b5
commit 8527da445e

View file

@ -242,6 +242,11 @@ class Page {
$this->add_html_header("<script type='text/javascript'>base_href = '$data_href';</script>");
if(file_exists("themes/$theme_name/favicon.ico")) {
$this->add_html_header("<link rel='icon' href='$data_href/themes/$theme_name/favicon.ico'>");
$this->add_html_header("<link rel='shortcut icon' href='$data_href/themes/$theme_name/favicon.ico'>");
}
/* Attempt to cache the CSS & JavaScript files */
if ($this->add_cached_auto_html_headers() === FALSE) {
// caching failed, add all files to html_headers.