From: River Tarnell Date: Sun, 3 Jul 2005 05:01:21 +0000 (+0000) Subject: fixes from live site X-Git-Tag: 1.5.0beta2~63 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=8e35c6da67bdfd8f38d612cde2e76a62f57d9d6b;p=lhc%2Fweb%2Fwiklou.git fixes from live site --- diff --git a/includes/ImagePage.php b/includes/ImagePage.php index 549b121970..a982b44416 100644 --- a/includes/ImagePage.php +++ b/includes/ImagePage.php @@ -142,12 +142,6 @@ class ImagePage extends Article { $sk = $wgUser->getSkin(); if ( $this->img->exists() ) { - if($this->img->fromSharedDirectory - && $wgRepositoryBaseUrl && $wgFetchCommonsDescriptions) { - $this->printSharedImageText(); - return; - } - # image $width = $this->img->getWidth(); $height = $this->img->getHeight(); @@ -257,7 +251,7 @@ class ImagePage extends Article { if ($wgRepositoryBaseUrl && $wgFetchCommonsDescriptions) { $ur = ini_set('allow_url_fopen', true); - $text = @file_get_contents($url); + $text = @file_get_contents($url . '?action=render'); ini_set('allow_url_fopen', $ur); if ($text) $wgOut->addHTML($text);