root/branches/release-38/php/lib/modifier.filters.php @ 2398

Revision 2398, 0.6 kB (checked in by auno, 19 months ago)

Added missing arguments. BugzID:79431

  • Property svn:keywords set to Author Date Id Revision
Line 
1<?php
2# Movable Type (r) Open Source (C) 2001-2008 Six Apart, Ltd.
3# This program is distributed under the terms of the
4# GNU General Public License, version 2.
5#
6# $Id$
7
8function smarty_modifier_filters($text,$filters) {
9    // status: complete
10    $f = preg_split('/\s*,\s*/', $filters);
11    global $mt;
12    $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    }
22    return $text;
23}
24?>
Note: See TracBrowser for help on using the browser.