From ae7dba63b2ccf0832ca2c7179adb34923a805ea5 Mon Sep 17 00:00:00 2001 From: chicpro Date: Thu, 27 Mar 2014 17:26:00 +0900 Subject: [PATCH] =?UTF-8?q?php=205.3=20=EC=9D=B4=EC=A0=84=EC=97=90?= =?UTF-8?q?=EC=84=9C=20=EB=B0=9C=EC=83=9D=ED=95=98=EB=8A=94=20=20parse=20e?= =?UTF-8?q?rror=20=EC=88=98=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/view.php | 11 ++++++----- mobile/skin/board/basic/view.skin.php | 2 +- mobile/skin/board/gallery/view.skin.php | 2 +- skin/board/basic/view.skin.php | 2 +- skin/board/gallery/view.skin.php | 2 +- 5 files changed, 10 insertions(+), 9 deletions(-) diff --git a/bbs/view.php b/bbs/view.php index 565fdfda5..e570a7763 100644 --- a/bbs/view.php +++ b/bbs/view.php @@ -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 = ''; diff --git a/mobile/skin/board/basic/view.skin.php b/mobile/skin/board/basic/view.skin.php index fd6192049..3d3d3a9f6 100644 --- a/mobile/skin/board/basic/view.skin.php +++ b/mobile/skin/board/basic/view.skin.php @@ -141,7 +141,7 @@ add_stylesheet('', 0 ?>
- +

diff --git a/mobile/skin/board/gallery/view.skin.php b/mobile/skin/board/gallery/view.skin.php index 6e9d50133..ecb7f4c17 100644 --- a/mobile/skin/board/gallery/view.skin.php +++ b/mobile/skin/board/gallery/view.skin.php @@ -141,7 +141,7 @@ add_stylesheet('', 0 ?>
- +

diff --git a/skin/board/basic/view.skin.php b/skin/board/basic/view.skin.php index 641c54194..910dafe48 100644 --- a/skin/board/basic/view.skin.php +++ b/skin/board/basic/view.skin.php @@ -149,7 +149,7 @@ add_stylesheet('', 0
- +

diff --git a/skin/board/gallery/view.skin.php b/skin/board/gallery/view.skin.php index 641c54194..910dafe48 100644 --- a/skin/board/gallery/view.skin.php +++ b/skin/board/gallery/view.skin.php @@ -149,7 +149,7 @@ add_stylesheet('', 0
- +