From 9a68f86230959cdc324f8040f808a96b79f054d3 Mon Sep 17 00:00:00 2001 From: thisgun Date: Tue, 17 Sep 2019 19:08:26 +0900 Subject: [PATCH] =?UTF-8?q?=EA=B2=8C=EC=8B=9C=EA=B8=80=20=EC=88=98?= =?UTF-8?q?=EC=A0=95=EC=8B=9C=20=EA=B8=80=20=EC=A0=9C=EB=AA=A9=EC=9D=84=20?= =?UTF-8?q?=EC=88=98=EC=A0=95=ED=96=88=EC=9D=84=EB=95=8C=20=EB=82=98?= =?UTF-8?q?=ED=83=80=EB=82=98=EB=8A=94=20=EC=98=A4=EB=A5=98=20=EC=88=98?= =?UTF-8?q?=EC=A0=95?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- bbs/write_update.php | 3 +++ lib/common.lib.php | 2 +- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/bbs/write_update.php b/bbs/write_update.php index dcfd59dba..cf7d0299b 100644 --- a/bbs/write_update.php +++ b/bbs/write_update.php @@ -424,6 +424,9 @@ if ($w == '' || $w == 'r') { $bo_notice = board_notice($board['bo_notice'], $wr_id, $notice); sql_query(" update {$g5['board_table']} set bo_notice = '{$bo_notice}' where bo_table = '{$bo_table}' "); + + // 글을 수정한 경우에는 제목이 달라질수도 있으니 static variable 를 새로고침합니다. + $write = get_write( $write_table, $wr['wr_id'], false); } // 게시판그룹접근사용을 하지 않아야 하고 비회원 글읽기가 가능해야 하며 비밀글이 아니어야 합니다. diff --git a/lib/common.lib.php b/lib/common.lib.php index bf4ea5be4..eeeb05ec7 100644 --- a/lib/common.lib.php +++ b/lib/common.lib.php @@ -707,7 +707,7 @@ function get_write($write_table, $wr_id, $is_cache=false) $write = $g5_object->get('bbs', $wr_id, $wr_bo_table); - if( !$write ){ + if( !$write || $is_cache == false ){ $sql = " select * from {$write_table} where wr_id = '{$wr_id}' "; $write = sql_fetch($sql);