Show
Ignore:
Timestamp:
06/04/08 09:20:19 (18 months ago)
Author:
fumiakiy
Message:

Use the default name for the new blog instead of removing it. BugId:79978

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-39/lib/MT/Upgrade.pm

    r2474 r2507  
    18441844 
    18451845    require MT::Blog; 
    1846     my $blog = MT::Blog->create_default_blog(MT->translate('First Blog'), $param{blog_template_set}) 
    1847         or return $self->error($self->translate_escape("Error saving record: [_1].", MT::Blog->errstr)); 
     1846    my $blog = MT::Blog->create_default_blog( 
     1847        exists $param{blog_name} 
     1848          ? uri_unescape($param{blog_name}) 
     1849          : MT->translate('First Blog'), 
     1850        $param{blog_template_set}) 
     1851            or return $self->error($self->translate_escape("Error saving record: [_1].", MT::Blog->errstr)); 
    18481852    $blog->site_path(exists $param{blog_path} ? uri_unescape($param{blog_path}) : ''); 
    18491853    $blog->site_url(exists $param{blog_url} ? uri_unescape($param{blog_url}) : ''); 
    1850     $blog->name(exists $param{blog_name} ? uri_unescape($param{blog_name}) : ''); 
    18511854    $blog->server_offset(exists $param{blog_timezone} ? ($param{blog_timezone} || 0) : 0); 
    18521855    $blog->template_set($param{blog_template_set});