}
}
- function getSharedImageText() {
+ function printSharedImageText() {
global $wgRepositoryBaseUrl, $wgFetchCommonsDescriptions, $wgOut;
$url = $wgRepositoryBaseUrl . urlencode($this->mTitle->getDBkey());
if ($wgRepositoryBaseUrl && $wgFetchCommonsDescriptions) {
$ur = ini_set('allow_url_fopen', true);
$text = @file($url);
- ini_set('allow_url_fopen', false);
+ ini_set('allow_url_fopen', $ur);
if ($text)
$wgOut->addHTML($text);
}