Index: branches/wmf/1.17wmf1/extensions/Vector/switchExperimentPrefs.php |
— | — | @@ -23,7 +23,6 @@ |
24 | 24 | $total = 0; |
25 | 25 | $lastUserID = 0; |
26 | 26 | while ( true ) { |
27 | | - $dbw->begin(); |
28 | 27 | $res = $dbw->select( 'user_properties', array( 'up_user' ), |
29 | 28 | array( 'up_property' => 'vector-noexperiments', "up_user > $lastUserID" ), |
30 | 29 | __METHOD__, |
— | — | @@ -59,6 +58,6 @@ |
60 | 59 | } |
61 | 60 | |
62 | 61 | $maintClass = 'SwitchExperimentPrefs'; |
63 | | -require_once( DO_MAINTENANCE ); |
| 62 | +require_once( RUN_MAINTENANCE_IF_MAIN ); |
64 | 63 | |
65 | 64 | |