Victorbarbu has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/264587

Change subject: Change methods to be static
......................................................................

Change methods to be static

Bug: T70716
Change-Id: I4ace3333cf6a8b7a5f9472503c2052c4b3ec95e8
---
M AutoProxyBlock.body.php
1 file changed, 2 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/AutoProxyBlock 
refs/changes/87/264587/1

diff --git a/AutoProxyBlock.body.php b/AutoProxyBlock.body.php
index b3b8d94..55680fb 100644
--- a/AutoProxyBlock.body.php
+++ b/AutoProxyBlock.body.php
@@ -1,7 +1,7 @@
 <?php
  
 class AutoProxyBlock {
-       function isProxy( $ip ) {
+       static function isProxy( $ip ) {
                global $wgMemc, $wgAutoProxyBlockSources;
                
                $memcKey = wfMemcKey( 'isproxy', $ip );
@@ -52,7 +52,7 @@
                }
        }
  
-       function checkProxy( $title, $user, $action, &$result ) {
+       static function checkProxy( $title, $user, $action, &$result ) {
                global $wgProxyCanPerform, $wgAutoProxyBlockLog, $wgRequest;
                
                if( in_array( $action, $wgProxyCanPerform ) || 
$user->isAllowed('proxyunbannable') ) {

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4ace3333cf6a8b7a5f9472503c2052c4b3ec95e8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/AutoProxyBlock
Gerrit-Branch: master
Gerrit-Owner: Victorbarbu <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to