mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-02 01:52:10 +09:00
Clean up other types of cache file path handling
This commit is contained in:
parent
930ebc97b7
commit
0c337f48cd
5 changed files with 20 additions and 24 deletions
|
|
@ -186,7 +186,7 @@ class layoutAdminController extends layout
|
|||
}
|
||||
}
|
||||
|
||||
$tmpDir = sprintf('./files/attach/images/%s/tmp', $args->layout_srl);
|
||||
$tmpDir = sprintf('./files/attach/images/%d/tmp', $args->layout_srl);
|
||||
// Separately handle if a type of extra_vars is an image
|
||||
if($layout_info->extra_var)
|
||||
{
|
||||
|
|
@ -777,7 +777,7 @@ class layoutAdminController extends layout
|
|||
|
||||
if(is_array($image_list)) {
|
||||
foreach($image_list as $key=>$val) {
|
||||
$new_file = sprintf("./files/attach/images/%s/%s", $args->layout_srl,$val->filename);
|
||||
$new_file = sprintf("./files/attach/images/%d/%s", $args->layout_srl,$val->filename);
|
||||
FileHandler::copyFile($val->old_file, $new_file);
|
||||
$extra_vars->{$key} = $new_file;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue