Replace deprecated method

Change-Id: Ief734bf89aea0c26a7121c687d930e91e3ac5611
This commit is contained in:
Siebrand Mazeland 2016-03-07 15:29:11 +01:00 committed by Kunal Mehta
parent 1ca07ef130
commit 8a62e6dfbd
2 changed files with 4 additions and 7 deletions

View file

@ -78,7 +78,7 @@ class SpecialInterwiki extends SpecialPage {
/**
* Returns boolean whether the user can modify the data.
* @param $out OutputPage|bool If $wgOut object given, it adds the respective error message.
* @throws PermissionsError
* @throws PermissionsError|ReadOnlyError
* @return bool
*/
public function canModify( $out = false ) {
@ -98,12 +98,9 @@ class SpecialInterwiki extends SpecialPage {
return false;
} elseif ( wfReadOnly() ) {
// Is the database in read-only mode?
if ( $out ) {
$out->readOnlyPage();
}
return false;
throw new ReadOnlyError;
}
return true;
}

View file

@ -1,6 +1,6 @@
{
"name": "Interwiki",
"version": "3.0 20140719",
"version": "3.1 20160307",
"author": [
"Stephanie Amanda Stevens",
"Alexandre Emsenhuber",