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:
parent
2aed08be5f
commit
90b76bf8c3
|
@ -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
|
||||||
|
|
Loading…
Reference in New Issue