Aaron Schulz has uploaded a new change for review.

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

Change subject: Make use of newer useTransactionalTimeLimit()
......................................................................

Make use of newer useTransactionalTimeLimit()

Change-Id: I7d9993839140bb93e2331d0b58d17f332837d011
---
M RenameuserSQL.php
M specials/SpecialRenameuser.php
2 files changed, 2 insertions(+), 7 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Renameuser 
refs/changes/05/248605/1

diff --git a/RenameuserSQL.php b/RenameuserSQL.php
index 1d289c1..9fbacda 100755
--- a/RenameuserSQL.php
+++ b/RenameuserSQL.php
@@ -227,13 +227,6 @@
                        );
                }
 
-               // Increase time limit (like CheckUser); this can take a 
while...
-               if ( $this->tablesJob ) {
-                       wfSuppressWarnings();
-                       set_time_limit( 120 );
-                       wfRestoreWarnings();
-               }
-
                $jobs = array(); // jobs for all tables
                // Construct jobqueue updates...
                // FIXME: if a bureaucrat renames a user in error, he/she
diff --git a/specials/SpecialRenameuser.php b/specials/SpecialRenameuser.php
index f33c391..e4819c4 100644
--- a/specials/SpecialRenameuser.php
+++ b/specials/SpecialRenameuser.php
@@ -38,6 +38,8 @@
                        throw new UserBlockedError( $this->getUser()->mBlock );
                }
 
+               $this->useTransactionalTimeLimit();
+
                $request = $this->getRequest();
                $showBlockLog = $request->getBool( 'submit-showBlockLog' );
                $usernames = explode( '/', $par, 2 ); // this works as "/" is 
not valid in usernames

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I7d9993839140bb93e2331d0b58d17f332837d011
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Renameuser
Gerrit-Branch: master
Gerrit-Owner: Aaron Schulz <[email protected]>

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

Reply via email to