diff options
Diffstat (limited to 'include')
-rw-r--r-- | include/opengraph.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/include/opengraph.php b/include/opengraph.php index 5360468eb..ba97d4f4f 100644 --- a/include/opengraph.php +++ b/include/opengraph.php @@ -23,7 +23,7 @@ // find first image if exist if(preg_match("/\[[zi]mg(=[0-9]+x[0-9]+)?\]([^\[]+)/is", $item['body'], $matches)) { $ogimage = $matches[2]; - $ogimagetype = guess_image_type($ogimage); + $ogimagetype = guess_image_type($ogimage); } // use summary as description if exist @@ -61,7 +61,7 @@ if(! isset($ogimage)) { $ogimage = $channel['xchan_photo_l']; - $ogimagetype = $channel['xchan_photo_mimetype']; + $ogimagetype = $channel['xchan_photo_mimetype']; } App::$page['htmlhead'] .= '<meta property="og:title" content="' . htmlspecialchars((isset($ogtitle) ? $ogtitle : $channel['channel_name'])) . '">' . "\r\n"; |