Changeset 4944

Show
Ignore:
Timestamp:
10/30/09 08:06:14 (4 weeks ago)
Author:
asawada
Message:

Suppress warning on theme listing screen.

Location:
branches/greyhound/lib/MT
Files:
2 modified

Legend:

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

    r4823 r4944  
    620620 
    621621                # check for a yaml file reference... 
    622                 if ( !ref($v) ) { 
     622                if ( !ref($v) && $v ) { 
    623623                    if ( $v =~ m/^[-\w]+\.yaml$/ ) { 
    624624                        my $f = File::Spec->catfile( $c->path, $v ); 
  • branches/greyhound/lib/MT/Theme.pm

    r4917 r4944  
    484484        $resize = 1 if $size ne 'large'; 
    485485    } 
     486    return unless $original_file; 
    486487    my $original_file_path = File::Spec->catfile( $theme->path, $original_file ); 
    487488    require MT::FileMgr;