- Timestamp:
- 2011/03/07 15:37:16 (13 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/version-2_5-dev/data/smarty_extends/function.from_to.php
r20116 r20540 34 34 { 35 35 require_once $smarty->_get_plugin_filepath('shared', 'escape_special_chars'); 36 36 37 37 $from = null; 38 38 $to = null; 39 39 $separator = ' ~ '; 40 40 $escape = true; 41 41 42 42 foreach ($params as $_key => $_val) { 43 43 switch ($_key) { … … 48 48 $$_key = (string) $_val; 49 49 break; 50 50 51 51 default: 52 52 $smarty->trigger_error("from_to: extra attribute '$_key' is unknown.", E_USER_NOTICE); … … 54 54 } 55 55 } 56 56 57 57 if ($escape) { 58 58 $from = smarty_function_escape_special_chars($from); 59 59 $to = smarty_function_escape_special_chars($to); 60 60 } 61 61 62 62 if ($from === $to) { 63 63 return $from;
Note: See TracChangeset
for help on using the changeset viewer.