mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-07 18:51:41 +09:00
#18069516 * 글 작성자에게 비밀댓글의 첨부파일이 보이지 않는 문제 수정
git-svn-id: http://xe-core.googlecode.com/svn/sandbox@6529 201d5d3c-b55e-5fd7-737f-ddc643e51545
This commit is contained in:
parent
e51b20e4eb
commit
8cd407cf08
1 changed files with 6 additions and 6 deletions
|
|
@ -204,8 +204,8 @@
|
|||
function getSummary($str_size = 50, $tail = '...') {
|
||||
$content = $this->getContent(false, false);
|
||||
|
||||
// 줄바꿈이 있을 때, 공백문자 삽입
|
||||
$content = preg_replace('!(<br[\s]*/{0,1}>[\s]*)+!is', ' ', $content);
|
||||
// 줄바꿈이 있을 때, 공백문자 삽입
|
||||
$content = preg_replace('!(<br[\s]*/{0,1}>[\s]*)+!is', ' ', $content);
|
||||
|
||||
// </p>, </div>, </li> 등의 태그를 공백 문자로 치환
|
||||
$content = str_replace(array('</p>', '</div>', '</li>'), ' ', $content);
|
||||
|
|
@ -216,8 +216,8 @@
|
|||
// < , > , " 를 치환
|
||||
$content = str_replace(array('<','>','"',' '), array('<','>','"',' '), $content);
|
||||
|
||||
// 연속된 공백문자 삭제
|
||||
$content = preg_replace('/ ( +)/is', ' ', $content);
|
||||
// 연속된 공백문자 삭제
|
||||
$content = preg_replace('/ ( +)/is', ' ', $content);
|
||||
|
||||
// 문자열을 자름
|
||||
$content = trim(cut_str($content, $str_size, $tail));
|
||||
|
|
@ -276,12 +276,12 @@
|
|||
}
|
||||
|
||||
function hasUploadedFiles() {
|
||||
if($this->isSecret() && !$this->isGranted()) return false;
|
||||
if(($this->isSecret() && !$this->isAccessible()) && !$this->isGranted()) return false;
|
||||
return $this->get('uploaded_count')? true : false;
|
||||
}
|
||||
|
||||
function getUploadedFiles() {
|
||||
if($this->isSecret() && !$this->isGranted()) return;
|
||||
if(($this->isSecret() && !$this->isAccessible()) && !$this->isGranted()) return;
|
||||
if(!$this->get('uploaded_count')) return;
|
||||
|
||||
$oFileModel = &getModel('file');
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue