mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-10 14:02:12 +09:00
#820 게시글 제목이 공백으로 등록되는 문제 처리
This commit is contained in:
parent
d39388fee0
commit
b13c567fe3
2 changed files with 2 additions and 2 deletions
|
|
@ -268,7 +268,7 @@ class documentController extends document
|
|||
}
|
||||
// If the tile is empty, extract string from the contents.
|
||||
settype($obj->title, "string");
|
||||
if($obj->title == '') $obj->title = cut_str(strip_tags($obj->content),20,'...');
|
||||
if($obj->title == '') $obj->title = cut_str(trim(strip_tags(nl2br($obj->content))),20,'...');
|
||||
// If no tile extracted from the contents, leave it untitled.
|
||||
if($obj->title == '') $obj->title = 'Untitled';
|
||||
// Remove XE's own tags from the contents.
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue