mirror of
https://github.com/Dolibarr/dolibarr.git
synced 2025-02-20 13:46:52 +01:00
Ajout possibilit de modifier la balise title
This commit is contained in:
parent
438fe8b448
commit
5dbabb13a7
|
|
@ -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";
|
||||
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user