아이폰6 사용자에게 글 작성시 위 문구가 뜨는 것을 제보받아 이미지자동출력 애드온 사용중지하니 이상없이 글이 써집니다 ㅡㅡ;
auto_image.addon.php 의
//본문 강제삽입 부분을 아래와 같이 수정.
if($addon_info->insert_mode !='N' && $called_position == 'after_module_proc' && in_array($this->act,$document_act) ) { $oFileModel = &getModel('file'); $var = $this->variables; $document_srl = $var[document_srl]; if($document_srl != null) { $args->document_srl = $document_srl; $output = executeQuery('document.getDocument', $args); $content = $output->data->content; $title = $output->data->title; $files = $oFileModel->getFiles($document_srl); if(count($files)) { $target_list = getTargetImg($content,$files); if(count($target_list)) { if($addon_info->insert_sequence =='Y') krsort($target_list); $obj->document_srl = $document_srl; foreach($target_list as $key=>$val) { $content = $p."<img src=\"".$val->uploaded_filename."\" alt=\"".$val->source_filename." : ".$title."\" title=\"".$val->source_filename." : ".$title."\" $style>".$ep.$content; } $obj->content = $content; $output = executeQuery('addons.auto_image.updateDocument', $obj);
} } } }
위와 같이 수정해보세요. 해당 문제 안생기네요.
저는 이렇게 해서 사용중입니다.
auto_image.addon.php 의
//본문 강제삽입 부분을 아래와 같이 수정.
if($addon_info->insert_mode !='N' && $called_position == 'after_module_proc' && in_array($this->act,$document_act) ) {
$oFileModel = &getModel('file');
$var = $this->variables;
$document_srl = $var[document_srl];
if($document_srl != null) {
$args->document_srl = $document_srl;
$output = executeQuery('document.getDocument', $args);
$content = $output->data->content;
$title = $output->data->title;
$files = $oFileModel->getFiles($document_srl);
if(count($files)) {
$target_list = getTargetImg($content,$files);
if(count($target_list)) {
if($addon_info->insert_sequence =='Y') krsort($target_list);
$obj->document_srl = $document_srl;
foreach($target_list as $key=>$val) {
$content = $p."<img src=\"".$val->uploaded_filename."\" alt=\"".$val->source_filename." : ".$title."\" title=\"".$val->source_filename." : ".$title."\" $style>".$ep.$content;
}
$obj->content = $content;
$output = executeQuery('addons.auto_image.updateDocument', $obj);
}
}
}
}
위와 같이 수정해보세요. 해당 문제 안생기네요.
저는 이렇게 해서 사용중입니다.