Index: trunk/extensions/ExternalData/ED_ParserFunctions.php |
— | — | @@ -144,7 +144,7 @@ |
145 | 145 | // @@todo check date |
146 | 146 | if ( $res->numRows() == 0 || $get_fresh) { |
147 | 147 | //echo "do web request: " . $url . "\n"; |
148 | | - $page = @file_get_contents( $url ); |
| 148 | + $page = Http::get( $url ); |
149 | 149 | if ( $page === false ) { |
150 | 150 | //echo( "error getting url retrying (".$try_count." of $this->http_number_of_tries)" ); |
151 | 151 | sleep( 1 ); |
Index: trunk/extensions/APC/SpecialAPC.php |
— | — | @@ -242,7 +242,7 @@ |
243 | 243 | Xml::element( 'h2', null, wfMsg( 'viewapc-version-info' ) ) |
244 | 244 | ); |
245 | 245 | |
246 | | - $rss = @file_get_contents('http://pecl.php.net/feeds/pkg_apc.rss'); |
| 246 | + $rss = Http::get( 'http://pecl.php.net/feeds/pkg_apc.rss' ); |
247 | 247 | if (!$rss) { |
248 | 248 | $wgOut->addWikiMsg( 'viewapc-version-failed' ); |
249 | 249 | } else { |