From e4ac9de490c8af62d9fb60e2dad0eb4fe719aa34 Mon Sep 17 00:00:00 2001 From: Laurent Destailleur Date: Mon, 31 Mar 2008 05:16:52 +0000 Subject: [PATCH] Fix: Can change main html title of pages --- htdocs/main.inc.php | 20 +++++--------------- 1 file changed, 5 insertions(+), 15 deletions(-) diff --git a/htdocs/main.inc.php b/htdocs/main.inc.php index 60f4cb1af1e..bafc2bad91d 100644 --- a/htdocs/main.inc.php +++ b/htdocs/main.inc.php @@ -674,21 +674,11 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs print ''."\n"; // Affiche title - if ($title) - { - print 'Dolibarr - '.$title.''; - } - else - { - if (defined("MAIN_TITLE")) - { - print "".MAIN_TITLE.""; - } - else - { - print 'Dolibarr'; - } - } + $appli='Dolibarr'; + if (! empty($conf->global->MAIN_TITLE)) $appli=$conf->global->MAIN_TITLE; + + if ($title) print ''.$appli.' - '.$title.''; + else print "".$appli.""; print "\n"; // Output style sheets