php 5.3 이전에서 발생하는 parse error 수정

This commit is contained in:
chicpro
2014-03-27 17:26:00 +09:00
parent f1c33e30a2
commit ae7dba63b2
5 changed files with 10 additions and 9 deletions

View File

@ -123,11 +123,12 @@ if (strstr($sfl, 'content'))
$view['content'] = search_font($stx, $view['content']);
//$view['rich_content'] = preg_replace("/{이미지\:([0-9]+)[:]?([^}]*)}/ie", "view_image(\$view, '\\1', '\\2')", $view['content']);
$view['rich_content'] = preg_replace_callback("/{이미지\:([0-9]+)[:]?([^}]*)}/i",
function ($matches) {
global $view;
return view_image($view, $matches[1], $matches[2]);
}, $view['content']);
function conv_rich_content($matches)
{
global $view;
return view_image($view, $matches[1], $matches[2]);
}
$view['rich_content'] = preg_replace_callback("/{이미지\:([0-9]+)[:]?([^}]*)}/i", "conv_rich_content", $view['content']);
$is_signature = false;
$signature = '';