Index: trunk/phase3/includes/Wiki.php |
— | — | @@ -343,11 +343,13 @@ |
344 | 344 | * @param $updates array of objects that hold an update to do |
345 | 345 | */ |
346 | 346 | function doUpdates( &$updates ) { |
| 347 | + wfProfileIn( __METHOD__ ); |
347 | 348 | /* No need to get master connections in case of empty updates array */ |
348 | | - if( !$updates ) { |
| 349 | + if (!$updates) { |
| 350 | + wfProfileOut( __METHOD__ ); |
349 | 351 | return; |
350 | 352 | } |
351 | | - wfProfileIn( __METHOD__ ); |
| 353 | + |
352 | 354 | $dbw = wfGetDB( DB_MASTER ); |
353 | 355 | foreach( $updates as $up ) { |
354 | 356 | $up->doUpdate(); |