Show
Ignore:
Timestamp:
04/11/08 10:00:27 (20 months ago)
Author:
fumiakiy
Message:

Reverted the checkin r1832. The fix breaks other cases. Reactivated bugid:69678.

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-34/php/lib/MTViewer.php

    r1832 r1860  
    239239 
    240240    function smarty_block_elseif($args, $content, &$ctx, &$repeat) { 
    241         $args['elseif'] = 1; 
    242241        return $this->smarty_block_else($args, $content, $ctx, $repeat); 
    243242    } 
     
    255254                $args['name'] = $var; 
    256255        } 
    257         if ( (count($args) > 1) || $args['elseif']) { 
     256        if (count($args) >= 1) { # else-if case 
    258257            require_once("block.mtif.php"); 
     258            $args['elseif'] = 1; 
    259259            if (!isset($content)) { 
    260260                $out = smarty_block_mtif($args, $content, $ctx, $repeat);