mirror of
https://github.com/e107inc/e107.git
synced 2025-04-19 20:21:51 +02:00
Merge pull request #3217 from SimSync/fix_3163
Fixes #3163 Strip the title "News" if page is the frontpage
This commit is contained in:
commit
3f64d29bd9
@ -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 "<title>".(defined('e_PAGETITLE') ? e_PAGETITLE.' - ' : (defined('PAGE_NAME') ? PAGE_NAME.' - ' : "")).SITENAME."</title>\n\n";
|
||||
if (deftrue('e_FRONTPAGE'))
|
||||
{
|
||||
// Ignore any additional title when current page is the frontpage
|
||||
echo "<title>".SITENAME."</title>\n\n";
|
||||
}
|
||||
else
|
||||
{
|
||||
echo "<title>".(defined('e_PAGETITLE') ? e_PAGETITLE.' - ' : (defined('PAGE_NAME') ? PAGE_NAME.' - ' : "")).SITENAME."</title>\n\n";
|
||||
}
|
||||
|
||||
|
||||
//
|
||||
@ -816,4 +824,4 @@ if ($e107_popup != 1) {
|
||||
|
||||
unset($text);
|
||||
}
|
||||
//Trim whitepsaces after end of the script
|
||||
//Trim whitepsaces after end of the script
|
||||
|
Loading…
x
Reference in New Issue
Block a user