mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/PageImages
synced 2024-11-15 03:43:46 +00:00
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:
parent
5b60adad39
commit
2db7a8728e
|
@ -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 ) ) {
|
||||
|
|
Loading…
Reference in a new issue