From 77a8b9e10b0bcbb7818353f889ff80f0df2433b0 Mon Sep 17 00:00:00 2001 From: Anika Henke Date: Sun, 20 Nov 2011 17:48:50 +0000 Subject: [PATCH] use core favicon function if available --- tpl_functions.php | 15 +++++++++++++++ 1 file changed, 15 insertions(+) diff --git a/tpl_functions.php b/tpl_functions.php index 27e8b1c..cf6a4e5 100644 --- a/tpl_functions.php +++ b/tpl_functions.php @@ -128,6 +128,14 @@ function _tpl_getFavicon($abs=false, $fileName='favicon.ico') { return DOKU_TPL.'images/'.$fileName; } +/* use core function if available, otherwise the custom one */ +if (!function_exists('tpl_getFavicon')) { + function tpl_getFavicon($abs=false, $fileName='favicon.ico'){ + _tpl_getFavicon($abs, $fileName); + } +} + + /** * Returns tag for various icon types (favicon|mobile|generic) * @@ -156,6 +164,13 @@ function _tpl_favicon($types=array('favicon')) { return $return; } +/* use core function if available, otherwise the custom one */ +if (!function_exists('tpl_favicon')) { + function tpl_favicon($types=array('favicon')){ + _tpl_favicon($types); + } +} + /** * Include additional html file from conf directory if it exists, otherwise use