5.4 버전 내용 적용
This commit is contained in:
@ -34,6 +34,10 @@ if( $file_arr[1] !== che_get_file_passname() ){
|
||||
$filepath = SAVE_DIR . '/' . $filesrc;
|
||||
$r = false;
|
||||
|
||||
if( function_exists('run_event') ){
|
||||
run_event('delete_editor_file', $filepath, $r);
|
||||
}
|
||||
|
||||
if (file_exists($filepath)) {
|
||||
$r = unlink($filepath);
|
||||
if ($r) {
|
||||
|
||||
@ -117,9 +117,14 @@ try {
|
||||
} catch (Exception $e) {
|
||||
}
|
||||
|
||||
$rdata = sprintf('{"fileUrl": "%s/%s", "filePath": "%s", "fileName": "%s", "fileSize": "%d" }',
|
||||
SAVE_URL,
|
||||
$filename,
|
||||
$file_url = SAVE_URL.'/'.$filename;
|
||||
|
||||
if( function_exists('run_replace') ){
|
||||
$file_url = run_replace('get_editor_upload_url', $file_url, $savefile, array());
|
||||
}
|
||||
|
||||
$rdata = sprintf('{"fileUrl": "%s", "filePath": "%s", "fileName": "%s", "fileSize": "%d" }',
|
||||
$file_url,
|
||||
$savefile,
|
||||
$filename,
|
||||
$filesize );
|
||||
|
||||
Reference in New Issue
Block a user