123456789101112131415161718192021222324252627282930313233 |
- <?php
- function smarty_modifiercompiler_to_charset($params)
- {
- if (!Smarty::$_MBSTRING) {
-
- return $params[ 0 ];
- }
- if (!isset($params[ 1 ])) {
- $params[ 1 ] = '"ISO-8859-1"';
- }
- return 'mb_convert_encoding(' . $params[ 0 ] . ', ' . $params[ 1 ] . ', "' . addslashes(Smarty::$_CHARSET) . '")';
- }
|