Skip to content
This repository has been archived by the owner on Aug 30, 2019. It is now read-only.

Commit

Permalink
Load content mapping from previous imports.
Browse files Browse the repository at this point in the history
  • Loading branch information
kdeldycke committed Feb 15, 2011
1 parent 207cf59 commit 8e17c90
Showing 1 changed file with 19 additions and 0 deletions.
19 changes: 19 additions & 0 deletions e107-importer.php
Expand Up @@ -341,6 +341,18 @@ function getE107ForumPostList() {
}


// Load pre-existing e107 Redirector mappings
function loadE107Mapping() {
if (get_option('e107_redirector_news_mapping')) $this->news_mapping = get_option('e107_redirector_news_mapping');
if (get_option('e107_redirector_category_mapping')) $this->category_mapping = get_option('e107_redirector_category_mapping');
if (get_option('e107_redirector_page_mapping')) $this->page_mapping = get_option('e107_redirector_page_mapping');
if (get_option('e107_redirector_comment_mapping')) $this->comment_mapping = get_option('e107_redirector_comment_mapping');
if (get_option('e107_redirector_user_mapping')) $this->user_mapping = get_option('e107_redirector_user_mapping');
if (get_option('e107_redirector_forum_mapping')) $this->forum_mapping = get_option('e107_redirector_forum_mapping');
if (get_option('e107_redirector_forum_post_mapping')) $this->forum_post_mapping = get_option('e107_redirector_forum_post_mapping');
}


// Import e107 preferences (aka global config)
function importPreferences() {
global $wpdb;
Expand Down Expand Up @@ -1362,6 +1374,13 @@ function import() {
<?php } ?>
</ul>

<h3><?php _e('Content mapping', 'e107-importer'); ?></h3>
<ul class="ul-disc">
<li><?php _e('Load pre-existing e107 content mapping...', 'e107-importer'); ?></li>
<?php $this->loadE107Mapping(); ?>
<li><?php _e('Existing content mapping from previous imports loaded.', 'e107-importer'); ?></li>
</ul>

<h3><?php _e('Users', 'e107-importer'); ?></h3>
<ul class="ul-disc">
<?php if ($this->e107_content_ownership == 'take_ownership') { ?>
Expand Down

0 comments on commit 8e17c90

Please sign in to comment.