jenkins-bot has submitted this change and it was merged.

Change subject: Replace deprecated method
......................................................................


Replace deprecated method

Change-Id: Ief734bf89aea0c26a7121c687d930e91e3ac5611
---
M Interwiki_body.php
M extension.json
2 files changed, 4 insertions(+), 7 deletions(-)

Approvals:
  Legoktm: Looks good to me, approved
  jenkins-bot: Verified



diff --git a/Interwiki_body.php b/Interwiki_body.php
index b2de958..2329a87 100644
--- a/Interwiki_body.php
+++ b/Interwiki_body.php
@@ -78,7 +78,7 @@
        /**
         * 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 @@
 
                        return false;
                } elseif ( wfReadOnly() ) {
-                       // Is the database in read-only mode?
-                       if ( $out ) {
-                               $out->readOnlyPage();
-                       }
-                       return false;
+                       throw new ReadOnlyError;
                }
+
                return true;
        }
 
diff --git a/extension.json b/extension.json
index 3ce3ea3..afc108e 100644
--- a/extension.json
+++ b/extension.json
@@ -1,6 +1,6 @@
 {
        "name": "Interwiki",
-       "version": "3.0 20140719",
+       "version": "3.1 20160307",
        "author": [
                "Stephanie Amanda Stevens",
                "Alexandre Emsenhuber",

-- 
To view, visit https://gerrit.wikimedia.org/r/275466
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: merged
Gerrit-Change-Id: Ief734bf89aea0c26a7121c687d930e91e3ac5611
Gerrit-PatchSet: 3
Gerrit-Project: mediawiki/extensions/Interwiki
Gerrit-Branch: master
Gerrit-Owner: Siebrand <siebr...@kitano.nl>
Gerrit-Reviewer: Legoktm <legoktm.wikipe...@gmail.com>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to