patch OpenGraph plugin

`$og['image']` **is** `false` this segment. So, no reason to use it as suffix to the image url.
This commit is contained in:
specktator 2016-06-05 06:41:22 +03:00
parent 2aed08be5f
commit 90b76bf8c3
1 changed files with 1 additions and 1 deletions

View File

@ -86,7 +86,7 @@ class pluginOpenGraph extends Plugin {
// Get the image from the content // Get the image from the content
$src = $this->getImage( $content ); $src = $this->getImage( $content );
if($src!==false) { if($src!==false) {
$html .= '<meta property="og:image" content="'.$urlImage.$og['image'].'">'.PHP_EOL; $html .= '<meta property="og:image" content="'.$urlImage.str_replace(HTML_PATH_UPLOADS,'',$src).'">'.PHP_EOL;
} }
} }
else else