From 71ceecb82b5d041b6e84f17d8f092980a47af2d9 Mon Sep 17 00:00:00 2001 From: ryan Date: Tue, 14 Feb 2006 22:32:25 +0000 Subject: [PATCH] dotclear importer fix from thomasq. fixes #2430 git-svn-id: http://svn.automattic.com/wordpress/trunk@3530 1a063a9b-81f0-0310-95a4-ce76da25c4cd --- wp-admin/import/dotclear.php | 14 ++++++++++---- 1 file changed, 10 insertions(+), 4 deletions(-) diff --git a/wp-admin/import/dotclear.php b/wp-admin/import/dotclear.php index 7d675096e2..8b32ff135c 100644 --- a/wp-admin/import/dotclear.php +++ b/wp-admin/import/dotclear.php @@ -1,4 +1,9 @@ get_results('SELECT * FROM dc_link ORDER BY position', ARRAY_A); + return $dcdb->get_results('SELECT * FROM '.$dbprefix.'link ORDER BY position', ARRAY_A); } function cat2wp($categories='') @@ -349,6 +354,7 @@ class Dotclear_Import { $Title = $wpdb->escape(csc ($post_titre)); $post_content = textconv ($post_content); + $post_excerpt = ""; if ($post_chapo != "") { $post_excerpt = textconv ($post_chapo); $post_content = $post_excerpt ."\n\n".$post_content; @@ -603,7 +609,7 @@ class Dotclear_Import { function cleanup_dcimport() { - delete_option('tpre'); + delete_option('dbprefix'); delete_option('dc_cats'); delete_option('dcid2wpid'); delete_option('dccat2wpcat'); @@ -644,7 +650,7 @@ class Dotclear_Import { printf('
  • ', __('Dotclear Database Password:')); printf('
  • ', __('Dotclear Database Name:')); printf('
  • ', __('Dotclear Database Host:')); - /* printf('
  • ', __('Dotclear Table prefix (if any):')); */ + printf('
  • ', __('Dotclear Table prefix:')); printf('
  • ', __('Originating character set:')); echo ''; }