1
0
mirror of https://github.com/e107inc/e107.git synced 2025-07-31 11:50:30 +02:00

Merge pull request #2903 from Serios/patch-11

og:image setting if there is no already set one
This commit is contained in:
Cameron
2017-12-09 10:09:51 -08:00
committed by GitHub

View File

@@ -18,13 +18,6 @@ if(e_ADMIN_AREA !==true)
}
$ogImage = e107::pref('social','og_image', false);
if(!empty($ogImage))
{
e107::meta('og:image',e107::getParser()->thumbUrl($ogImage,'w=500',false,true));
unset($ogImage);
}
if(deftrue('XURL_TWITTER') && XURL_TWITTER !== '#')
{
$screenName = basename(XURL_TWITTER);
@@ -69,4 +62,4 @@ if(e_ADMIN_AREA !==true)
}
?>
?>