Merge "Added chunked upload support to upload.js"
[lhc/web/wiklou.git] / maintenance / refreshLinks.php
index a6cd548..facc506 100644 (file)
@@ -178,7 +178,6 @@ class RefreshLinks extends Maintenance {
                        $this->output( "Starting from page_id $start of $end.\n" );
 
                        for ( $id = $start; $id <= $end; $id++ ) {
-
                                if ( !( $id % self::REPORTING_INTERVAL ) ) {
                                        $this->output( "$id\n" );
                                        wfWaitForSlaves();
@@ -191,7 +190,6 @@ class RefreshLinks extends Maintenance {
                                $this->output( "Starting from page_id $start of $end.\n" );
 
                                for ( $id = $start; $id <= $end; $id++ ) {
-
                                        if ( !( $id % self::REPORTING_INTERVAL ) ) {
                                                $this->output( "$id\n" );
                                                wfWaitForSlaves();
@@ -278,6 +276,7 @@ class RefreshLinks extends Maintenance {
                        $page->getTitle(), /* $old = */ null, /* $recursive = */ false );
                foreach ( $updates as $update ) {
                        DeferredUpdates::addUpdate( $update );
+                       DeferredUpdates::doUpdates();
                }
        }