Skip to content
Snippets Groups Projects
Commit 0f747863 authored by lupo49's avatar lupo49
Browse files

Cosmetic changes in tpl_getFavicon()

parent 67c15ece
No related branches found
No related tags found
No related merge requests found
......@@ -1347,12 +1347,14 @@ function tpl_flush(){
* @author Anika Henke <anika@selfthinker.org>
*/
function tpl_getFavicon($abs=false) {
if (file_exists(mediaFN('favicon.ico'))) {
if($abs) return ml('favicon.ico', '', '', '', true);
else return ml('favicon.ico');
if (file_exists(mediaFN('favicon.ico')))
return ml('favicon.ico', '', '', '', $abs);
if($abs) {
return DOKU_URL.substr(DOKU_TPL.'images/favicon.ico', strlen(DOKU_REL));
} else {
return DOKU_TPL.'images/favicon.ico';
}
if($abs) return DOKU_URL.substr(DOKU_TPL.'images/favicon.ico', strlen(DOKU_REL));
else return DOKU_TPL.'images/favicon.ico';
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment