Automation init...3

This commit is contained in:
최준흠 2024-09-18 14:40:39 +09:00
parent 6a4428755e
commit bceec3122e
2 changed files with 2 additions and 2 deletions

View File

@ -43,7 +43,7 @@ class MangboardStorage extends FileStorage
{ {
//Board 게시판 image_path , content용 데이터 배열에 추가 후 modifyBoard에서 처리 //Board 게시판 image_path , content용 데이터 배열에 추가 후 modifyBoard에서 처리
switch ($this->getOrintginType()) { switch ($this->getOrintginType()) {
case "image": case "img":
$content = sprintf( $content = sprintf(
"<img src=\"%s/%s/%s\" alt=\"%s\">", "<img src=\"%s/%s/%s\" alt=\"%s\">",
$this->getUploadURL(), $this->getUploadURL(),

View File

@ -173,7 +173,7 @@ class BoardModel extends CommonModel
if ($formDatas['image_path'] == "") { if ($formDatas['image_path'] == "") {
$formDatas['image_path'] = $storage->getBasePath() . DIRECTORY_SEPARATOR . $storage->getPath() . DIRECTORY_SEPARATOR . $storage->getOriginName(); $formDatas['image_path'] = $storage->getBasePath() . DIRECTORY_SEPARATOR . $storage->getPath() . DIRECTORY_SEPARATOR . $storage->getOriginName();
} }
$formDatas['content'] .= $storage->getHTMLTag();; $formDatas['content'] .= $storage->getHTMLTag();
} }
//망보드 게시판에 등록 //망보드 게시판에 등록
if ($formDatas['content'] == "") { if ($formDatas['content'] == "") {