X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=maintenance%2FconvertLinks.php;h=54c0edaecc8f953f87c968b0441c0ce0f2088492;hb=052c6c9aedfce9b5470f5709da14268bc7c8bc38;hp=fa9c574b562a5146dc1c14594c7aadd154312b8c;hpb=5a4fdb5b4e82fd68e200a887cac9d4e106fed0af;p=lhc%2Fweb%2Fwiklou.git diff --git a/maintenance/convertLinks.php b/maintenance/convertLinks.php index fa9c574b56..54c0edaecc 100644 --- a/maintenance/convertLinks.php +++ b/maintenance/convertLinks.php @@ -148,7 +148,7 @@ class ConvertLinks extends Maintenance { $dbw->bufferResults( false ); $res = $dbw->query( "SELECT cur_namespace,cur_title,cur_id FROM $cur" ); - $ids = array(); + $ids = []; foreach ( $res as $row ) { $title = $row->cur_title; @@ -193,9 +193,9 @@ class ConvertLinks extends Maintenance { $sqlRead = $dbw->limitResult( $sqlRead, $linksConvInsertInterval, $rowOffset ); $res = $dbw->query( $sqlRead ); if ( $noKeys ) { - $sqlWrite = array( "INSERT INTO $links_temp (l_from,l_to) VALUES " ); + $sqlWrite = [ "INSERT INTO $links_temp (l_from,l_to) VALUES " ]; } else { - $sqlWrite = array( "INSERT IGNORE INTO $links_temp (l_from,l_to) VALUES " ); + $sqlWrite = [ "INSERT IGNORE INTO $links_temp (l_from,l_to) VALUES " ]; } $tuplesAdded = 0; # no tuples added to INSERT yet