Index: trunk/dotclear-importer.php
===================================================================
--- trunk/dotclear-importer.php	(revision 326727)
+++ trunk/dotclear-importer.php	(working copy)
@@ -679,13 +679,12 @@
 	}
 }
 
-$dc_import = new Dotclear_Import();
-
-register_importer('dotclear', __('DotClear', 'dotclear-importer'), __('Import categories, users, posts, comments, and links from a DotClear blog.', 'dotclear-importer'), array ($dc_import, 'dispatch'));
-
 } // class_exists( 'WP_Importer' )
 
 function dotclear_importer_init() {
     load_plugin_textdomain( 'dotclear-importer', false, dirname( plugin_basename( __FILE__ ) ) . '/languages' );
+
+	$dc_import = new Dotclear_Import();
+	register_importer('dotclear', __('DotClear', 'dotclear-importer'), __('Import categories, users, posts, comments, and links from a DotClear blog.', 'dotclear-importer'), array ($dc_import, 'dispatch'));
 }
-add_action( 'init', 'dotclear_importer_init' );
+add_action( 'admin_init', 'dotclear_importer_init' );
