- Timestamp:
- Feb 9, 2013, 9:01:42 AM (12 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
branches/Ver2.4/xpressme_integration_kit/include/xpress_block_render.php
r835 r836 35 35 { 36 36 $xml_data = str_replace('<?xml version="1.0" encoding="EUC-JP" ?>', '<?xml version="1.0" encoding="UTF-8" ?>', $xml_data); 37 $ans = mb_convert_variables('UTF-8' , 'EUC-JP', &$xml_data); //EUC-JP to UTF-837 $ans = mb_convert_variables('UTF-8' , 'EUC-JP', $xml_data); //EUC-JP to UTF-8 38 38 $ret = @xpress_XML_unserialize($xml_data); 39 $ans = mb_convert_variables('EUC-JP' , 'UTF-8', &$ret); //UTF-8 to EUC-JP39 $ans = mb_convert_variables('EUC-JP' , 'UTF-8', $ret); //UTF-8 to EUC-JP 40 40 } else { 41 41 $ret = xpress_XML_unserialize($xml_data); … … 187 187 } 188 188 189 $tpl =& new XoopsTpl() ; 190 $tpl->template_dir = $xoops_config->module_path . '/templates'; 189 if ( version_compare(PHP_VERSION, '5.0.0', '>')) { 190 eval('$tpl = new XoopsTpl();'); 191 }else { 192 eval('$tpl = & new XoopsTpl();'); 193 } 194 $tpl->template_dir = $xoops_config->module_path . '/templates'; 191 195 if (!$tpl->template_exists($templates_file)){ 192 196 $src_file_path = $xoops_config->module_path . '/templates/' .$mydirname. '_' . str_replace(".php", ".html", $block_function_name);
Note: See TracChangeset
for help on using the changeset viewer.