~ubuntu-branches/debian/squeeze/movabletype-opensource/squeeze

« back to all changes in this revision

Viewing changes to plugins/WXRImporter/lib/WXRImporter/WXRHandler.pm

  • Committer: Bazaar Package Importer
  • Author(s): Dominic Hargreaves
  • Date: 2008-06-13 23:28:40 UTC
  • mfrom: (1.1.1 upstream)
  • Revision ID: james.westby@ubuntu.com-20080613232840-ya4jfxv1jgl45a3d
Tags: 4.2~rc2-1
* New upstream release candidate
* Update Standards-Version (no changes)
* Ensure that schema upgrade message is always seen

Show diffs side-by-side

added added

removed removed

Lines of Context:
2
2
# Author: Six Apart (http://www.sixapart.com)
3
3
# Released under the Artistic License
4
4
#
5
 
# $Id: WXRHandler.pm 1104 2007-12-12 01:49:35Z hachi $
 
5
# $Id: WXRHandler.pm 2515 2008-06-06 01:39:38Z fumiakiy $
6
6
 
7
7
package WXRImporter::WXRHandler;
8
8
 
12
12
use MT;
13
13
use MT::Util qw( offset_time_list );
14
14
 
15
 
@WXRImporter::WXRHandler::ISA = qw(XML::SAX::Base);
 
15
use base qw(XML::SAX::Base);
16
16
 
17
 
use constant POST_SEPARATOR => '<!--more-->'; # WordPress's separator string
 
17
sub POST_SEPARATOR { '<!--more-->'; } # WordPress's separator string
18
18
 
19
19
sub new {
20
20
    my $class = shift;
459
459
    my $post = $class->new;
460
460
    $post->blog_id($blog->id);
461
461
    $post->convert_breaks($self->{convert_breaks});
 
462
    $post->status($blog->status_default);
462
463
    for my $hash (@$hashes) {
463
464
        my @hash_array = %$hash;
464
465
        my $key = $hash_array[0];