Changeset 2515

Show
Ignore:
Timestamp:
06/06/08 01:39:38 (20 months ago)
Author:
fumiakiy
Message:

Set default status to imported entries. BugId:80040

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-39/plugins/WXRImporter/lib/WXRImporter/WXRHandler.pm

    r1104 r2515  
    1313use MT::Util qw( offset_time_list ); 
    1414 
    15 @WXRImporter::WXRHandler::ISA = qw(XML::SAX::Base); 
    16  
    17 use constant POST_SEPARATOR => '<!--more-->'; # WordPress's separator string 
     15use base qw(XML::SAX::Base); 
     16 
     17sub POST_SEPARATOR { '<!--more-->'; } # WordPress's separator string 
    1818 
    1919sub new { 
     
    460460    $post->blog_id($blog->id); 
    461461    $post->convert_breaks($self->{convert_breaks}); 
     462    $post->status($blog->status_default); 
    462463    for my $hash (@$hashes) { 
    463464        my @hash_array = %$hash;