X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=maintenance%2FconvertLinks.php;h=17b911108b5841480e3c042b09b3a4c0b00dd22c;hb=d966178eadf6f5e30f4049c844fdb6afe827501f;hp=7404b5abcb37607b4c4436801bfe381fb48897f5;hpb=c752c43a374a49fe77dacac5a0a514c5a43f838b;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/convertLinks.php b/maintenance/convertLinks.php index 7404b5abcb..17b911108b 100644 --- a/maintenance/convertLinks.php +++ b/maintenance/convertLinks.php @@ -21,7 +21,7 @@ * @ingroup Maintenance */ -require_once( __DIR__ . '/Maintenance.php' ); +require_once __DIR__ . '/Maintenance.php'; /** * Maintenance script to convert from the old links schema (string->ID) @@ -80,7 +80,7 @@ This gives a huge speed improvement for very large links tables which are MyISAM # -------------------------------------------------------------------- - list ( $cur, $links, $links_temp, $links_backup ) = $dbw->tableNamesN( 'cur', 'links', 'links_temp', 'links_backup' ); + list( $cur, $links, $links_temp, $links_backup ) = $dbw->tableNamesN( 'cur', 'links', 'links_temp', 'links_backup' ); if ( $dbw->tableExists( 'pagelinks' ) ) { $this->output( "...have pagelinks; skipping old links table updates\n" ); @@ -177,7 +177,7 @@ This gives a huge speed improvement for very large links tables which are MyISAM } $dbw->freeResult( $res ); # $this->output( "rowOffset: $rowOffset\ttuplesAdded: $tuplesAdded\tnumBadLinks: $numBadLinks\n" ); - if ( $tuplesAdded != 0 ) { + if ( $tuplesAdded != 0 ) { if ( $reportLinksConvProgress ) { $this->output( "Inserting $tuplesAdded tuples into $links_temp..." ); } @@ -259,4 +259,4 @@ This gives a huge speed improvement for very large links tables which are MyISAM } $maintClass = "ConvertLinks"; -require_once( RUN_MAINTENANCE_IF_MAIN ); +require_once RUN_MAINTENANCE_IF_MAIN;