SamanthaNguyen has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/342952 )

Change subject: Replace readOnlyPage() which has been deprecated since 1.25
......................................................................

Replace readOnlyPage() which has been deprecated since 1.25

Bug: T160582
Change-Id: I92d85c70a9382dd57f851e0b39d29c7683377c2d
---
M SpecialLinkApprove.php
M SpecialLinkEdit.php
M SpecialLinkSubmit.php
M extension.json
4 files changed, 5 insertions(+), 14 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/LinkFilter 
refs/changes/52/342952/1

diff --git a/SpecialLinkApprove.php b/SpecialLinkApprove.php
index ec4ee6e..d5a32d2 100644
--- a/SpecialLinkApprove.php
+++ b/SpecialLinkApprove.php
@@ -108,10 +108,7 @@
                }
 
                // Is the database locked or not?
-               if ( wfReadOnly() ) {
-                       $out->readOnlyPage();
-                       return false;
-               }
+               $this->checkReadOnly();
 
                // Set the page title
                $out->setPageTitle( $this->msg( 'linkfilter-approve-title' 
)->plain() );
diff --git a/SpecialLinkEdit.php b/SpecialLinkEdit.php
index 389a4c7..a7bbf66 100644
--- a/SpecialLinkEdit.php
+++ b/SpecialLinkEdit.php
@@ -26,10 +26,7 @@
                }
 
                // Is the database locked or not?
-               if ( wfReadOnly() ) {
-                       $out->readOnlyPage();
-                       return false;
-               }
+               $this->checkReadOnly();
 
                // No access for blocked users
                if ( $user->isBlocked() ) {
@@ -151,4 +148,4 @@
                return $output;
        }
 
-}
\ No newline at end of file
+}
diff --git a/SpecialLinkSubmit.php b/SpecialLinkSubmit.php
index ab72af0..6853c5d 100644
--- a/SpecialLinkSubmit.php
+++ b/SpecialLinkSubmit.php
@@ -30,10 +30,7 @@
                }
 
                // Is the database locked or not?
-               if ( wfReadOnly() ) {
-                       $out->readOnlyPage();
-                       return false;
-               }
+               $this->checkReadOnly();
 
                // Blocked through Special:Block? No access for you either
                if ( $user->isBlocked() ) {
diff --git a/extension.json b/extension.json
index f78b2b0..3781179 100644
--- a/extension.json
+++ b/extension.json
@@ -1,6 +1,6 @@
 {
        "name": "LinkFilter",
-       "version": "3.4",
+       "version": "3.4.1",
        "author": [
                "Aaron Wright",
                "David Pean",

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I92d85c70a9382dd57f851e0b39d29c7683377c2d
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/LinkFilter
Gerrit-Branch: master
Gerrit-Owner: SamanthaNguyen <samanthanguyen1...@gmail.com>

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

Reply via email to