mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 19:21:40 +09:00
#238 썸네일 경로 변경.
This commit is contained in:
parent
194ce8614a
commit
e42cb2f26e
5 changed files with 8 additions and 8 deletions
|
|
@ -562,7 +562,7 @@ class commentItem extends Object
|
|||
}
|
||||
|
||||
// Define thumbnail information
|
||||
$thumbnail_path = sprintf('files/cache/thumbnails/%s', getNumberingPath($this->comment_srl, 3));
|
||||
$thumbnail_path = sprintf('files/thumbnails/%s', getNumberingPath($this->comment_srl, 3));
|
||||
$thumbnail_file = sprintf('%s%dx%d.%s.jpg', $thumbnail_path, $width, $height, $thumbnail_type);
|
||||
$thumbnail_url = Context::getRequestUri() . $thumbnail_file;
|
||||
|
||||
|
|
|
|||
|
|
@ -506,8 +506,8 @@ class documentAdminController extends document
|
|||
{
|
||||
// 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/cache/thumbnails (thumbnail policies have changed since version 1.0.5)
|
||||
FileHandler::removeFilesInDir('./files/cache/thumbnails');
|
||||
// delete a directory itself, files/thumbnails (thumbnail policies have changed since version 1.0.5)
|
||||
FileHandler::removeFilesInDir('./files/thumbnails');
|
||||
|
||||
$this->setMessage('success_deleted');
|
||||
}
|
||||
|
|
|
|||
|
|
@ -532,7 +532,7 @@ class documentController extends document
|
|||
// commit
|
||||
$oDB->commit();
|
||||
// Remove the thumbnail file
|
||||
FileHandler::removeDir(sprintf('files/cache/thumbnails/%s',getNumberingPath($obj->document_srl, 3)));
|
||||
FileHandler::removeDir(sprintf('files/thumbnails/%s',getNumberingPath($obj->document_srl, 3)));
|
||||
|
||||
$output->add('document_srl',$obj->document_srl);
|
||||
//remove from cache
|
||||
|
|
@ -625,7 +625,7 @@ class documentController extends document
|
|||
$this->_deleteDocumentVotedLog($args);
|
||||
|
||||
// Remove the thumbnail file
|
||||
FileHandler::removeDir(sprintf('files/cache/thumbnails/%s',getNumberingPath($document_srl, 3)));
|
||||
FileHandler::removeDir(sprintf('files/thumbnails/%s',getNumberingPath($document_srl, 3)));
|
||||
|
||||
// commit
|
||||
$oDB->commit();
|
||||
|
|
@ -757,7 +757,7 @@ class documentController extends document
|
|||
if($oDocument->get('category_srl')) $this->updateCategoryCount($oDocument->get('module_srl'),$oDocument->get('category_srl'));
|
||||
|
||||
// remove thumbnails
|
||||
FileHandler::removeDir(sprintf('files/cache/thumbnails/%s',getNumberingPath($obj->document_srl, 3)));
|
||||
FileHandler::removeDir(sprintf('files/thumbnails/%s',getNumberingPath($obj->document_srl, 3)));
|
||||
// Set the attachment to be invalid state
|
||||
if($oDocument->hasUploadedFiles())
|
||||
{
|
||||
|
|
|
|||
|
|
@ -757,7 +757,7 @@ class documentItem extends Object
|
|||
$thumbnail_type = $config->thumbnail_type;
|
||||
}
|
||||
// Define thumbnail information
|
||||
$thumbnail_path = sprintf('files/cache/thumbnails/%s',getNumberingPath($this->document_srl, 3));
|
||||
$thumbnail_path = sprintf('files/thumbnails/%s',getNumberingPath($this->document_srl, 3));
|
||||
$thumbnail_file = sprintf('%s%dx%d.%s.jpg', $thumbnail_path, $width, $height, $thumbnail_type);
|
||||
$thumbnail_url = Context::getRequestUri().$thumbnail_file;
|
||||
// Return false if thumbnail file exists and its size is 0. Otherwise, return its path
|
||||
|
|
|
|||
|
|
@ -187,7 +187,7 @@ class integration_searchModel extends module
|
|||
{
|
||||
$obj->type = 'image';
|
||||
|
||||
$thumbnail_path = sprintf('files/cache/thumbnails/%s',getNumberingPath($val->file_srl, 3));
|
||||
$thumbnail_path = sprintf('files/thumbnails/%s',getNumberingPath($val->file_srl, 3));
|
||||
if(!is_dir($thumbnail_path)) FileHandler::makeDir($thumbnail_path);
|
||||
$thumbnail_file = sprintf('%s%dx%d.%s.jpg', $thumbnail_path, 120, 120, 'crop');
|
||||
$thumbnail_url = Context::getRequestUri().$thumbnail_file;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue