Show
Ignore:
Timestamp:
04/18/08 02:34:26 (20 months ago)
Author:
takayama
Message:

Fixed BugId:75137
* Keep compatibility of attribute name
* added tests

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-35/lib/MT/Blog.pm

    r1949 r1971  
    385385    my $path = $param->{path} || ''; 
    386386    my @path; 
    387     if ($path =~ m!^/!) { 
     387    if ($path =~ s!^/!!) { 
    388388        # absolute 
    389         @path = split /\//, $path; 
     389        @path = split q{/}, $path; 
    390390    } else { 
    391391        # relative 
    392392        push @path, MT->config('IncludesDir'); 
    393         push @path, split /\//, $path; 
     393        push @path, split q{/}, $path; 
    394394    } 
    395395    return ($filename, @path);