diff --git a/e107_core/templates/header_default.php b/e107_core/templates/header_default.php index 869a3f546..c233c7a4a 100644 --- a/e107_core/templates/header_default.php +++ b/e107_core/templates/header_default.php @@ -165,7 +165,15 @@ unset($e_headers); // echo e107::getUrl()->response()->renderMeta()."\n"; // render all the e107::meta() entries. echo e107::getSingleton('eResponse')->renderMeta()."\n"; -echo "".(defined('e_PAGETITLE') ? e_PAGETITLE.' - ' : (defined('PAGE_NAME') ? PAGE_NAME.' - ' : "")).SITENAME."\n\n"; +if (deftrue('e_FRONTPAGE')) +{ + // Ignore any additional title when current page is the frontpage + echo "".SITENAME."\n\n"; +} +else +{ + echo "".(defined('e_PAGETITLE') ? e_PAGETITLE.' - ' : (defined('PAGE_NAME') ? PAGE_NAME.' - ' : "")).SITENAME."\n\n"; +} // @@ -816,4 +824,4 @@ if ($e107_popup != 1) { unset($text); } -//Trim whitepsaces after end of the script \ No newline at end of file +//Trim whitepsaces after end of the script