| @@ 43-43 (lines=1) @@ | ||
| 40 | $obj->commentStatus = $obj->comment_status; |
|
| 41 | ||
| 42 | settype($obj->title, "string"); |
|
| 43 | if($obj->title == '') $obj->title = cut_str(trim(strip_tags(nl2br($obj->content))),20,'...'); |
|
| 44 | //setup dpcument title tp 'Untitled' |
|
| 45 | if($obj->title == '') $obj->title = 'Untitled'; |
|
| 46 | ||
| @@ 279-279 (lines=1) @@ | ||
| 276 | // If the tile is empty, extract string from the contents. |
|
| 277 | $obj->title = htmlspecialchars($obj->title); |
|
| 278 | settype($obj->title, "string"); |
|
| 279 | if($obj->title == '') $obj->title = cut_str(trim(strip_tags(nl2br($obj->content))),20,'...'); |
|
| 280 | // If no tile extracted from the contents, leave it untitled. |
|
| 281 | if($obj->title == '') $obj->title = 'Untitled'; |
|
| 282 | // Remove XE's own tags from the contents. |
|
| @@ 477-477 (lines=1) @@ | ||
| 474 | } |
|
| 475 | // If the tile is empty, extract string from the contents. |
|
| 476 | settype($obj->title, "string"); |
|
| 477 | if($obj->title == '') $obj->title = cut_str(strip_tags($obj->content),20,'...'); |
|
| 478 | // If no tile extracted from the contents, leave it untitled. |
|
| 479 | if($obj->title == '') $obj->title = 'Untitled'; |
|
| 480 | // Remove XE's own tags from the contents. |
|
| @@ 314-314 (lines=1) @@ | ||
| 311 | $obj->is_notice = 'N'; |
|
| 312 | ||
| 313 | settype($obj->title, "string"); |
|
| 314 | if($obj->title == '') $obj->title = cut_str(strip_tags($obj->content),20,'...'); |
|
| 315 | //그래도 없으면 Untitled |
|
| 316 | if($obj->title == '') $obj->title = 'Untitled'; |
|
| 317 | ||