1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 03:40:37 +02:00

Using e107::title() will now automatically add an og:title meta value if one isn't already defined.

This commit is contained in:
Cameron
2021-09-22 12:23:30 -07:00
parent 8b2e6b955a
commit 79e016a7f6
2 changed files with 2 additions and 2 deletions

View File

@@ -136,6 +136,7 @@ else
if(!defined('e_PAGETITLE') && ($_PAGE_TITLE = e107::getSingleton('eResponse')->getMetaTitle())) // use e107::title() to set.
{
define('e_PAGETITLE', $_PAGE_TITLE);
e107::meta('og:title', $_PAGE_TITLE); // will only populate if not already defined.
unset($_PAGE_TITLE);
}

View File

@@ -158,7 +158,6 @@ if (isset($_POST['commentsubmit']))
// e107::getMessage()->addDebug("TITLE: " . $pageTitle);
e107::meta('og:title', $pageTitle);
e107::title($pageTitle);
if(!empty($ftmp['pagedescription']))