Changeset 858

Show
Ignore:
Timestamp:
08/30/08 17:12:44 (3 months ago)
Author:
ayunyan
Message:

plugin:mtimport fixes typo

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • plugins/mtimport/trunk/mtimport.plugin.php

    r857 r858  
    531531 
    532532    /** 
    533      * The plugin sink for the auth_ajax_mt_import_tackbacks hook. 
     533     * The plugin sink for the auth_ajax_mt_import_trackbacks hook. 
    534534     * Responds via authenticated ajax to requests for comment importing. 
    535535     * 
     
    537537     * @param AjaxHandler $handler The handler that handled the request, contains $_POST info 
    538538     */ 
    539     public function action_auth_ajax_mt_import_tackbacks($handler) 
    540     { 
    541         $valid_fields = array( 'db_name','db_host','db_user','db_pass','db_prefix', 'blog_id', 'tackbackindex'); 
     539    public function action_auth_ajax_mt_import_trackbacks($handler) 
     540    { 
     541        $valid_fields = array( 'db_name','db_host','db_user','db_pass','db_prefix', 'blog_id', 'trackbackindex'); 
    542542        $inputs= array_intersect_key( $_POST, array_flip( $valid_fields ) ); 
    543543        extract( $inputs ); 
     
    549549        } 
    550550 
    551         $tackbackcount= $mtdb->get_value("SELECT count(tackback_id) FROM {$db_prefix}tackback WHERE tackback_blog_id = '{$blog_id}';"); 
    552         $min = $tackbackindex * MT_IMPORT_BATCH + 1; 
    553         $max = min( ( $tackbackindex + 1 ) * MT_IMPORT_BATCH, $tackbackcount ); 
    554  
    555         echo sprintf(_t('<p>Importing tackbacks %d-%d of %d.</p>'), $min, $max, $tackbackcount); 
     551        $trackbackcount= $mtdb->get_value("SELECT count(trackback_id) FROM {$db_prefix}trackback WHERE trackback_blog_id = '{$blog_id}';"); 
     552        $min = $trackbackindex * MT_IMPORT_BATCH + 1; 
     553        $max = min( ( $trackbackindex + 1 ) * MT_IMPORT_BATCH, $trackbackcount ); 
     554 
     555        echo sprintf(_t('<p>Importing trackbacks %d-%d of %d.</p>'), $min, $max, $trackbackcount); 
    556556 
    557557        $post_info= DB::get_results("SELECT post_id, value FROM " . DB::table('postinfo') . " WHERE name= 'mp_id';"); 
     
    561561        } 
    562562 
    563         $tackbacks = $mtdb->get_results("SELECT 
     563        $trackbacks = $mtdb->get_results("SELECT 
    564564            trackback_title AS name, 
    565565            trackback_url AS url, 
     
    620620                echo '</ul>'; 
    621621            } 
     622            return; 
    622623        } 
    623624