Cleanup r55984: rename new $wgDisableTooltipsAndAccesskeys to $wgEnableTooltipsAndAcc...
[lhc/web/wiklou.git] / maintenance / populateLogSearch.inc
index 51dac2e..d678191 100644 (file)
@@ -1,9 +1,6 @@
 <?php
 /**
- * Makes the required database updates for Special:ProtectedPages
- * to show all protected pages, even ones before the page restrictions
- * schema change. All remaining page_restriction column values are moved
- * to the new table.
+ * Makes the required database updates for log display in Special:RevisionDelete
  *
  * Run via update.php or directly through populateLogSearch.php
  *
@@ -16,7 +13,8 @@ define( 'LOG_SEARCH_BATCH_SIZE', 100 );
 function migrate_log_params( $db ) {
        $start = $db->selectField( 'logging', 'MIN(log_id)', false, __FUNCTION__ );
        if( !$start ) {
-               die("Nothing to do.\n");
+               echo "Nothing to do.\n";
+               return true;
        }
        $end = $db->selectField( 'logging', 'MAX(log_id)', false, __FUNCTION__ );
        
@@ -60,8 +58,8 @@ function migrate_log_params( $db ) {
                                }
                        }
                }
-               $blockStart += LOG_SEARCH_BATCH_SIZE - 1;
-               $blockEnd += LOG_SEARCH_BATCH_SIZE - 1;
+               $blockStart += LOG_SEARCH_BATCH_SIZE;
+               $blockEnd += LOG_SEARCH_BATCH_SIZE;
                wfWaitForSlaves( 5 );
        }
        if( $db->insert(