From 7f6aa4feef8c7870ec0a9830d46bb75ad224a9a3 Mon Sep 17 00:00:00 2001 From: Brion Vibber Date: Thu, 18 Dec 2003 02:23:23 +0000 Subject: [PATCH] Don't forget to record the current username... --- maintenance/importUseModWiki.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/maintenance/importUseModWiki.php b/maintenance/importUseModWiki.php index 37b4f10a66..d7416fabd8 100644 --- a/maintenance/importUseModWiki.php +++ b/maintenance/importUseModWiki.php @@ -16,7 +16,7 @@ /* Set these correctly! */ $wgImportEncoding = "CP1252"; /* We convert all to UTF-8 */ -$wgRootDirectory = "/home/usemod/wiki-fi/lib-http/db/wiki"; +$wgRootDirectory = "/home/usemod/wiki-ia/lib-http/db/wiki"; /* globals */ $wgFieldSeparator = "\xb3"; # Some wikis may use different char @@ -220,6 +220,7 @@ function importPage( $title ) $comment = wfStrencode( recodeText( $page->summary ) ); $minor = ($page->minor ? 1 : 0); list( $userid, $username ) = checkUserCache( $page->username, $page->host ); + $username = wfStrencode( recodeText( $username ) ); $timestamp = wfUnix2Timestamp( $page->ts ); $redirect = ( preg_match( '/^#REDIRECT/', $page->text ) ? 1 : 0 ); $random = mt_rand() / mt_getrandmax(); -- 2.20.1