Change-Id: Id82225d0fb65dcd30b5724ee4f2d7838dfcb5ea6
- public static function disableInterwikis( $prefix, &$data ) {
- return false;
- }
-
/**
* Don't throw a warning if $function is deprecated and called later
*
/**
* Don't throw a warning if $function is deprecated and called later
*
$this->upload = new UploadTestHandler;
$this->hooks = $wgHooks;
$this->upload = new UploadTestHandler;
$this->hooks = $wgHooks;
- $wgHooks['InterwikiLoadPrefix'][] = 'MediaWikiTestCase::disableInterwikis';
+ $wgHooks['InterwikiLoadPrefix'][] = function( $prefix, &$data ) {
+ return false;
+ };