mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Interwiki
synced 2024-11-27 15:50:32 +00:00
Replace deprecated method
Change-Id: Ief734bf89aea0c26a7121c687d930e91e3ac5611
This commit is contained in:
parent
1ca07ef130
commit
8a62e6dfbd
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "Interwiki",
|
||||
"version": "3.0 20140719",
|
||||
"version": "3.1 20160307",
|
||||
"author": [
|
||||
"Stephanie Amanda Stevens",
|
||||
"Alexandre Emsenhuber",
|
||||
|
|
Loading…
Reference in a new issue