mirror of
https://github.com/e107inc/e107.git
synced 2025-04-22 13:41:52 +02:00
Make sure og:type always has a value.
This commit is contained in:
parent
e06069459f
commit
fc2db726f2
@ -46,12 +46,18 @@ class social_event
|
||||
{
|
||||
$ogImage = e107::pref('social', 'og_image', false);
|
||||
|
||||
if(empty($meta['og:type']))
|
||||
{
|
||||
e107::meta('og:image', 'website');
|
||||
}
|
||||
|
||||
if(empty($ogImage) || empty($meta) || e_ADMIN_AREA === true)
|
||||
{
|
||||
return null;
|
||||
}
|
||||
|
||||
// check if we have og:image defined
|
||||
|
||||
foreach($meta as $m)
|
||||
{
|
||||
if($m['name'] === 'og:image')
|
||||
|
Loading…
x
Reference in New Issue
Block a user