1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-23 14:44:29 +02:00

Issue #4783 Site name was still being appended to the <title> tag. Site name has now been removed when using news_meta_title.

This commit is contained in:
Cameron
2022-06-06 19:15:41 -07:00
parent 94bf1efda2
commit 08eb2a37d9
4 changed files with 47 additions and 21 deletions

View File

@@ -109,21 +109,28 @@ function render_title()
define('e_PAGETITLE', $_PAGE_TITLE);
}
$arr = [];
if(!deftrue('e_FRONTPAGE'))
if($_FULL_TITLE = e107::getSingleton('eResponse')->getMetaTitle(true)) // override entire title. @see news_meta_title
{
if(deftrue('e_PAGETITLE'))
{
$arr[] = e_PAGETITLE;
}
elseif(defined('PAGE_NAME'))
{
$arr[] = PAGE_NAME;
}
$arr = array($_FULL_TITLE);
}
else
{
$arr = [];
$arr[] = SITENAME;
if(!deftrue('e_FRONTPAGE'))
{
if(deftrue('e_PAGETITLE'))
{
$arr[] = e_PAGETITLE;
}
elseif(defined('PAGE_NAME'))
{
$arr[] = PAGE_NAME;
}
}
$arr[] = SITENAME;
}
if($custom = e107::callMethod('theme', 'title', $arr))
{