Merge pull request #285 from specktator/opengraph-patch

patch OpenGraph plugin
This commit is contained in:
Diego Najar 2016-06-07 01:59:21 +02:00
commit c87ce7daad

View File

@ -86,7 +86,7 @@ class pluginOpenGraph extends Plugin {
// Get the image from the content
$src = $this->getImage( $content );
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