mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-05-04 09:32:15 +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;
|
||||
}
|
||||
|
|
|
|||
|
|
@ -113,7 +113,7 @@ class layoutView extends layout
|
|||
if($layoutSrl == -1)
|
||||
{
|
||||
$site_srl = ($oModule) ? $oModule->module_info->site_srl : 0;
|
||||
$designInfoFile = sprintf(_XE_PATH_ . 'files/site_design/design_%s.php', $site_srl);
|
||||
$designInfoFile = sprintf(_XE_PATH_ . 'files/site_design/design_%d.php', $site_srl);
|
||||
include($designInfoFile);
|
||||
|
||||
if($skinType == 'M')
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue