class ImagePage extends Article {
/* private */ var $img; // Image object this page is shown for
+ var $mExtraDescription = false;
function render() {
global $wgOut;
$this->viewUpdates();
}
+ if ($this->mExtraDescription)
+ $wgOut->addWikiText($this->mExtraDescription);
+
$this->closeShowImage();
$this->imageHistory();
$this->imageLinks();
if ($wgRepositoryBaseUrl && $wgFetchCommonsDescriptions) {
$ur = ini_set('allow_url_fopen', true);
- $text = @file_get_contents($url . '?action=render');
+ $text = wfGetHTTP($url . '?action=render');
ini_set('allow_url_fopen', $ur);
if ($text)
- $wgOut->addHTML($text);
+ $this->mExtraDescription = $text;
}
}