From 5dbabb13a7ee8476ab53869d59c2a759350ec11a Mon Sep 17 00:00:00 2001 From: Rodolphe Quiedeville Date: Tue, 9 Sep 2003 21:51:41 +0000 Subject: [PATCH] =?UTF-8?q?Ajout=20possibilit=E9=20de=20modifier=20la=20ba?= =?UTF-8?q?lise=20title?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- htdocs/main.inc.php3 | 15 +++++++++++---- 1 file changed, 11 insertions(+), 4 deletions(-) diff --git a/htdocs/main.inc.php3 b/htdocs/main.inc.php3 index cbac403cb95..44d4f157581 100644 --- a/htdocs/main.inc.php3 +++ b/htdocs/main.inc.php3 @@ -305,7 +305,7 @@ setlocale(LC_TIME, "fr_FR"); * */ -function top_menu($head) +function top_menu($head, $title="") { global $user, $conf, $rtplang; @@ -318,13 +318,20 @@ function top_menu($head) print ''; print "\n"; - if (defined("MAIN_TITLE")) + if (strlen($title) > 0) { - print "".MAIN_TITLE.""; + print ''.$title.''; } else { - print 'Dolibarr'; + if (defined("MAIN_TITLE")) + { + print "".MAIN_TITLE.""; + } + else + { + print 'Dolibarr'; + } } print "\n";