From 956014654057a05037b6db80c9fe08930d9de507 Mon Sep 17 00:00:00 2001 From: Cyrille de Lambert Date: Wed, 17 Aug 2011 09:51:39 +0000 Subject: [PATCH] Added ability to link the theme to favicon --- htdocs/main.inc.php | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index da67ba17afb..ff02c021eab 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -25,7 +25,7 @@ * \file htdocs/main.inc.php * \ingroup core * \brief File that defines environment for Dolibarr pages only (variables not required by scripts) - * \version $Id: main.inc.php,v 1.761 2011/08/15 17:55:50 eldy Exp $ + * \version $Id: main.inc.php,v 1.762 2011/08/17 09:51:39 cdelambert Exp $ */ @ini_set('memory_limit', '64M'); // This may be useless if memory is hard limited by your PHP @@ -868,8 +868,11 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs // Displays meta print ''."\n"; // Evite indexation par robots print ''."\n"; - print ''."\n"; - + if (file_exists(DOL_DOCUMENT_ROOT.'/theme/'.$conf->theme.'/img/favicon.ico')){ + print ''."\n"; + }else{ + print ''."\n"; + } // Displays title $appli='Dolibarr'; if (!empty($conf->global->MAIN_APPLICATION_TITLE)) $appli=$conf->global->MAIN_APPLICATION_TITLE;