mirror of
https://github.com/e107inc/e107.git
synced 2025-08-04 13:47:31 +02:00
Issue #4785 Make sure the og:description matches the meta description.
This commit is contained in:
@@ -73,20 +73,26 @@ class social_event
|
|||||||
{
|
{
|
||||||
$description = e107::getSingleton('eResponse')->getMetaDescription();
|
$description = e107::getSingleton('eResponse')->getMetaDescription();
|
||||||
|
|
||||||
if(empty($description) && deftrue('META_DESCRIPTION'))
|
if(empty($description))
|
||||||
{
|
{
|
||||||
$description = META_DESCRIPTION;
|
if(deftrue('META_DESCRIPTION'))
|
||||||
}
|
{
|
||||||
else
|
$description = META_DESCRIPTION;
|
||||||
{
|
}
|
||||||
$description = e107::pref('core', 'meta_description');
|
else
|
||||||
|
{
|
||||||
|
$tmp = e107::pref('core', 'meta_description');
|
||||||
|
if(!empty($tmp[e_LANGUAGE]))
|
||||||
|
{
|
||||||
|
$description = $tmp[e_LANGUAGE];
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!empty($description))
|
if(!empty($description))
|
||||||
{
|
{
|
||||||
e107::meta('og:description', $description);
|
e107::meta('og:description', $description);
|
||||||
e107::meta('twitter:description', $description);
|
e107::meta('twitter:description', $description);
|
||||||
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user