Changeset 2188
- Timestamp:
- 05/01/08 22:10:28 (5 months ago)
- Files:
-
- branches/release-37/php/lib/MTUtil.php (modified) (1 diff)
- branches/release-37/php/lib/function.mtcommentbody.php (modified) (1 diff)
- branches/release-37/php/lib/function.mtentrybody.php (modified) (1 diff)
- branches/release-37/php/lib/function.mtentrymore.php (modified) (1 diff)
- branches/release-37/php/lib/modifier.filters.php (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
branches/release-37/php/lib/MTUtil.php
r2098 r2188 1586 1586 } 1587 1587 1588 function apply_text_filter ($ctx, $text, $filter) { 1589 if ($text == '' || $filter == '') return $text; 1590 1591 if ($filter == 'convert_breaks') { 1592 $text = html_text_transform($text); 1593 } elseif ($ctx->load_modifier($filter)) { 1594 $mod = 'smarty_modifier_'.$filter; 1595 $text = $mod($text); 1596 } 1597 1598 return $text; 1599 } 1600 1588 1601 ?> branches/release-37/php/lib/function.mtcommentbody.php
r1174 r2188 18 18 $cb = 'convert_breaks'; 19 19 } 20 if ($cb) { 21 if ($ctx->load_modifier($cb)) { 22 $mod = 'smarty_modifier_'.$cb; 23 $text = $mod($text); 24 } 25 } 20 require_once 'MTUtil.php'; 21 $text = apply_text_filter($ctx, $text, $cb); 26 22 if (isset($args['words'])) { 27 23 require_once("MTUtil.php"); branches/release-37/php/lib/function.mtentrybody.php
r1174 r2188 23 23 $cb = 'convert_breaks'; 24 24 } 25 if ($cb) { 26 # invoke modifier to format 27 if ($ctx->load_modifier($cb)) { 28 $mod = 'smarty_modifier_'.$cb; 29 $text = $mod($text); 30 } 31 } 25 require_once 'MTUtil.php'; 26 $text = apply_text_filter($ctx, $text, $cb); 32 27 } 33 28 if (isset($args['words'])) { branches/release-37/php/lib/function.mtentrymore.php
r1174 r2188 23 23 $cb = 'convert_breaks'; 24 24 } 25 if ($cb) { 26 # invoke modifier to format 27 if ($ctx->load_modifier($cb)) { 28 $mod = 'smarty_modifier_'.$cb; 29 $text = $mod($text); 30 } 31 } 25 require_once 'MTUtil.php'; 26 $text = apply_text_filter($ctx, $text, $cb); 32 27 } 33 28 if (isset($args['words'])) { branches/release-37/php/lib/modifier.filters.php
r1174 r2188 16 16 $filter = 'convert_breaks'; 17 17 } 18 if ($ctx->load_modifier($filter)) { 19 $mod = 'smarty_modifier_'.$filter; 20 $text = $mod($text); 21 } 18 require_once 'MTUtil.php'; 19 $text = apply_text_filter($text, $filter); 22 20 } 23 21 }
