Ajout possibilit de modifier la balise title

This commit is contained in:
Rodolphe Quiedeville 2003-09-09 21:51:41 +00:00
parent 438fe8b448
commit 5dbabb13a7

View File

@ -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 '<LINK REL="stylesheet" TYPE="text/css" HREF="'.DOL_URL_ROOT.'/'.$conf->css.'">';
print "\n";
if (defined("MAIN_TITLE"))
if (strlen($title) > 0)
{
print "<title>".MAIN_TITLE."</title>";
print '<title>'.$title.'</title>';
}
else
{
print '<title>Dolibarr</title>';
if (defined("MAIN_TITLE"))
{
print "<title>".MAIN_TITLE."</title>";
}
else
{
print '<title>Dolibarr</title>';
}
}
print "\n";