mirror of
https://github.com/e107inc/e107.git
synced 2025-03-14 01:19:44 +01:00
Fix for og:image on news items.
This commit is contained in:
parent
86044e143c
commit
018dc53f06
@ -461,11 +461,11 @@ class news_front
|
||||
$tmp = explode(",", $iurl);
|
||||
foreach($tmp as $mimg)
|
||||
{
|
||||
if(substr($mimg,-8) == '.youtube')
|
||||
if(substr($mimg,-8) == '.youtube' || empty($mimg))
|
||||
{
|
||||
continue;
|
||||
}
|
||||
e107::meta('og:image',$tp->thumbUrl($tmp[0],'w=500',false,true) );
|
||||
e107::meta('og:image',$tp->thumbUrl($mimg,'w=500',false,true) );
|
||||
// e107::meta('og:image',$mimg);
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user