Show
Ignore:
Timestamp:
06/17/08 04:13:08 (18 months ago)
Author:
takayama
Message:

Fixed BugId:80186
* Changed to be able to apply multiple filters

Files:
1 modified

Legend:

Unmodified
Added
Removed
  • branches/release-40/php/lib/modifier.filters.php

    r2398 r2587  
    88function smarty_modifier_filters($text,$filters) { 
    99    // status: complete 
    10     $f = preg_split('/\s*,\s*/', $filters); 
    1110    global $mt; 
    1211    $ctx =& $mt->context(); 
    13     if (is_array($f) && count($f) > 0) { 
    14         foreach ($f as $filter) { 
    15             if ($filter == '__default__') { 
    16                 $filter = 'convert_breaks'; 
    17             } 
    18             require_once 'MTUtil.php'; 
    19             $text = apply_text_filter($ctx, $text, $filter); 
    20         } 
    21     } 
     12    require_once 'MTUtil.php'; 
     13    $text = apply_text_filter($ctx, $text, $filters); 
     14 
    2215    return $text; 
    2316}