Changeset 4953

Show
Ignore:
Timestamp:
11/01/09 05:48:48 (4 weeks ago)
Author:
asawada
Message:

Don't show information string if the importer didn't have info handler. also fixed a typo. bugzid:102976. bugzid:102975.

Location:
branches/greyhound
Files:
3 modified

Legend:

Unmodified
Added
Removed
  • branches/greyhound/lib/MT/Theme.pm

    r4952 r4953  
    542542    my @messages; 
    543543    for my $element ( @elements ) { 
    544         push @messages, $element->information_string( $blog ); 
     544        my $str = $element->information_string( $blog ); 
     545        push @messages, $str if $str; 
    545546    } 
    546547    return @messages; 
  • branches/greyhound/lib/MT/Theme/Element.pm

    r4916 r4953  
    111111    my $importer = $_[0] || $element->importer 
    112112        or die sprintf 'Theme element importer not found: %s', $element->errstr; 
    113     $info = $importer->{info}; 
     113    $info = $importer->{info} or return; 
    114114    my $str; 
    115115    if ( defined $info ) { 
  • branches/greyhound/tmpl/cms/list_theme.tmpl

    r4926 r4953  
    173173    <mt:if name="info"> 
    174174        <div id="theme-<mt:var name="id">-info" class="theme-info"> 
    175             <h4><__trans phrase="Theme Infomation"></h4> 
     175            <h4><__trans phrase="Theme Information"></h4> 
    176176            <ul> 
    177177            <mt:loop name="info">