From: Jerome Jamnicky Date: Tue, 13 Apr 2004 13:36:52 +0000 (+0000) Subject: bugfixes provided by TimStarling X-Git-Tag: 1.3.0beta1~440 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/%22%24ccApp/ecrire?a=commitdiff_plain;h=05933130a940775acee504d8540be41e7b25c809;p=lhc%2Fweb%2Fwiklou.git bugfixes provided by TimStarling --- diff --git a/maintenance/convertLinks.php b/maintenance/convertLinks.php index 570eb0f436..10374989b4 100644 --- a/maintenance/convertLinks.php +++ b/maintenance/convertLinks.php @@ -47,7 +47,7 @@ if ( !wfNumRows( $res ) ) { while ( $row = wfFetchObject( $res ) ) { if ( array_key_exists( $row->l_from, $ids ) ) { - $links[$row->l_from][$row->l_to] = 1; + $links[$ids[$row->l_from]][$row->l_to] = 1; } else { $numBad ++; } @@ -75,7 +75,7 @@ if ( !wfNumRows( $res ) ) { } # Swap in the new table -wfQuery( "RENAME TABLE links TO links_backup, links_temp TO links" ); +wfQuery( "RENAME TABLE links TO links_backup, links_temp TO links", DB_WRITE ); print "Conversion complete. The old table remains at links_backup, delete at your leisure.\n";