Merge pull request #833 from jloguercio/6579

Load favicon from CSS dir - Refs #6579
1.10.x
Yannick Warnier 9 years ago
commit c603b31052
  1. BIN
      app/Resources/public/css/themes/chamilo/images/favicon.ico
  2. 12
      main/inc/lib/template.lib.php

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

@ -801,7 +801,17 @@ class Template
$this->assign('text_direction', api_get_text_direction());
$this->assign('section_name', 'section-'.$this_section);
$favico = '<link rel="shortcut icon" href="'.api_get_path(WEB_PATH).'favicon.ico" type="image/x-icon" />';
//Defaul root chamilo favicon
$favico = '<link rel="shortcut icon" href="' . api_get_path(WEB_PATH) . 'favicon.ico" type="image/x-icon" />';
//Added to verify if in the current Chamilo Theme exist a favicon
$favicoThemeUrl = api_get_path(SYS_CSS_PATH) . 'themes/' . $this->theme . '/images/';
//If exist pick the current chamilo theme favicon
if (is_file($favicoThemeUrl . 'favicon.ico')) {
$favico = '<link rel="shortcut icon" href="' . api_get_path(WEB_CSS_PATH)
. 'themes/' . $this->theme . '/images/favicon.ico" type="image/x-icon" />';
}
if (api_is_multiple_url_enabled()) {
$access_url_id = api_get_current_access_url_id();

Loading…
Cancel
Save