From 05933130a940775acee504d8540be41e7b25c809 Mon Sep 17 00:00:00 2001 From: Jerome Jamnicky Date: Tue, 13 Apr 2004 13:36:52 +0000 Subject: [PATCH] bugfixes provided by TimStarling --- maintenance/convertLinks.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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"; -- 2.20.1