2
0
forked from Wavyzz/dolibarr

Fix: Can change main html title of pages

This commit is contained in:
Laurent Destailleur
2008-03-31 05:16:52 +00:00
parent bc47d486a3
commit e4ac9de490

View File

@@ -674,21 +674,11 @@ function top_htmlhead($head, $title='', $disablejs=0, $disablehead=0, $arrayofjs
print '<meta name="author" content="Dolibarr Development Team">'."\n";
// Affiche title
if ($title)
{
print '<title>Dolibarr - '.$title.'</title>';
}
else
{
if (defined("MAIN_TITLE"))
{
print "<title>".MAIN_TITLE."</title>";
}
else
{
print '<title>Dolibarr</title>';
}
}
$appli='Dolibarr';
if (! empty($conf->global->MAIN_TITLE)) $appli=$conf->global->MAIN_TITLE;
if ($title) print '<title>'.$appli.' - '.$title.'</title>';
else print "<title>".$appli."</title>";
print "\n";
// Output style sheets