r93159 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r93158‎ | r93159 | r93160 >
Date:03:05, 26 July 2011
Author:dantman
Status:deferred
Tags:
Comment:
Expand the $wgLogo when applying it to og:image to ensure that we don't have relative urls if the $wgLogo is relative (like the default setting) which are not valid.
Modified paths:
  • /trunk/extensions/OpenGraphMeta/OpenGraphMeta.php (modified) (history)

Diff [purge]

Index: trunk/extensions/OpenGraphMeta/OpenGraphMeta.php
@@ -81,7 +81,7 @@
8282 if ( isset($out->mMainImage) && ($out->mMainImage !== false) ) {
8383 $meta["og:image"] = wfExpandUrl($out->mMainImage->createThumb(100*3, 100));
8484 } else if ( $isMainpage ) {
85 - $meta["og:image"] = $wgLogo;
 85+ $meta["og:image"] = wfExpandUrl($wgLogo);
8686 }
8787 if ( isset($out->mDescription) ) // set by Description2 extension, install it if you want proper og:description support
8888 $meta["og:description"] = $out->mDescription;

Status & tagging log