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