mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-09 19:51:42 +09:00
#2172 복원된 페이지에 남아있는 썸네일 삭제 기능 개선
This commit is contained in:
parent
e3e3a375ec
commit
25b6415587
1 changed files with 5 additions and 4 deletions
|
|
@ -511,10 +511,11 @@ class documentAdminController extends document
|
|||
*/
|
||||
function procDocumentAdminDeleteAllThumbnail()
|
||||
{
|
||||
// delete all of thumbnail_ *. jpg files from files/attaches/images/ directory (prior versions to 1.0.4)
|
||||
$this->deleteThumbnailFile('./files/attach/images');
|
||||
// delete a directory itself, files/thumbnails (thumbnail policies have changed since version 1.0.5)
|
||||
FileHandler::removeFilesInDir('./files/thumbnails');
|
||||
$temp_cache_dir = './files/thumbnails_' . $_SERVER['REQUEST_TIME'];
|
||||
FileHandler::rename('./files/thumbnails', $temp_cache_dir);
|
||||
FileHandler::makeDir('./files/thumbnails');
|
||||
|
||||
FileHandler::removeDir($temp_cache_dir);
|
||||
|
||||
$this->setMessage('success_deleted');
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue