Migrate call to Http::get to use options for timeout

Since 1.25 the timeout is part of the options array.
Also added the caller for profiling

Change-Id: I111b1a0199f8a5fd0bfcfb490717861757f1d496
This commit is contained in:
Umherirrender 2018-04-05 10:14:31 +02:00
parent 5b60adad39
commit 2db7a8728e

View file

@ -308,7 +308,7 @@ class LinksUpdateHookHandler {
global $wgFileExtensions;
$list = [];
$text = Http::get( $url, 3 );
$text = Http::get( $url, [ 'timeout' => 3 ], __METHOD__ );
$regex = '/\[\[:([^|\#]*?\.(?:' . implode( '|', $wgFileExtensions ) . '))/i';
if ( $text && preg_match_all( $regex, $text, $matches ) ) {