Make WordPress Core

Changeset 3236


Ignore:
Timestamp:
11/29/2005 02:59:23 PM (21 years ago)
Author:
ryan
Message:

TP importer tweaks.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/wp-admin/import/textpattern.php

    r3228 r3236  
    2121
    2222// STOP EDITING
    23 
    24 add_option('tpre',$txpcfg['table_prefix']);
    25 
    2623
    2724/**
     
    605602        function dispatch()
    606603        {
     604                global $txpdb, $txpcfg;
     605
    607606                if (empty ($_GET['step']))
    608607                        $step = 0;
     
    612611                $this->header();
    613612               
     613                if ( $step > 0 ) {
     614                        add_option('tpre',$txpcfg['table_prefix']);
     615                        $txpdb = new wpdb($txpcfg['user'], $txpcfg['pass'], $txpcfg['db'], $txpcfg['host']);
     616                }
     617
    614618                switch ($step)
    615619                {
     
    647651}
    648652
    649 $txpdb = new wpdb($txpcfg['user'], $txpcfg['pass'], $txpcfg['db'], $txpcfg['host']);
    650 
    651653$txp_import = new Textpattern_Import();
    652654register_importer('textpattern', 'Textpattern', __('Import posts from a Textpattern Blog'), array ($txp_import, 'dispatch'));
Note: See TracChangeset for help on using the changeset viewer.