Show
Ignore:
Timestamp:
04/13/08 07:01:19 (20 months ago)
Author:
fumiakiy
Message:

Fixed the issue in which MTElse and MTElseIf did not work correctly when "name" or "tag" argument was omitted both in static and in dynamic. BugId:69678

Also fixed the bug case filed as BugId:79027 in PHP tag handlers.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-34/lib/MT/Builder.pm

    r1862 r1876  
    401401                    local $vars->{__value__} = delete $vars->{__cond_value__}; 
    402402                    local $vars->{__name__}  = delete $vars->{__cond_name__}; 
     403                    $out = $out ? $ctx->slurp(\%args, $cond) : $ctx->else(\%args, $cond); 
    403404                    delete $vars->{__cond_tag__}; 
    404                     $out = $out ? $ctx->slurp(\%args, $cond) : $ctx->else(\%args, $cond); 
    405405                    return $build->error(MT->translate("Error in <mt[_1]> tag: [_2]", $t->[0], $ctx->errstr)) 
    406406                        unless defined $out;