r91164 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r91163‎ | r91164 | r91165 >
Date:09:11, 30 June 2011
Author:catrope
Status:ok
Tags:
Comment:
1.17wmf1: MFT r91163
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/Vector/switchExperimentPrefs.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/Vector/switchExperimentPrefs.php
@@ -23,7 +23,6 @@
2424 $total = 0;
2525 $lastUserID = 0;
2626 while ( true ) {
27 - $dbw->begin();
2827 $res = $dbw->select( 'user_properties', array( 'up_user' ),
2928 array( 'up_property' => 'vector-noexperiments', "up_user > $lastUserID" ),
3029 __METHOD__,
@@ -59,6 +58,6 @@
6059 }
6160
6261 $maintClass = 'SwitchExperimentPrefs';
63 -require_once( DO_MAINTENANCE );
 62+require_once( RUN_MAINTENANCE_IF_MAIN );
6463
6564

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r91163Fixes for r91065 per CR: drop stray begin() call and use RUN_MAINTENANCE_IF_MAINcatrope09:10, 30 June 2011

Status & tagging log