mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-08 03:01:43 +09:00
Fix deprecated ${var} syntax
This commit is contained in:
parent
81daa1fa17
commit
30493947d8
3 changed files with 10 additions and 6 deletions
|
|
@ -127,16 +127,20 @@ class FileAdminView extends File
|
|||
}
|
||||
}
|
||||
|
||||
if($file->upload_target_type && isset(${$file->upload_target_type.'_srls'}) && is_array(${$file->upload_target_type.'_srls'}))
|
||||
if (in_array($file->upload_target_type, ['doc', 'com']))
|
||||
{
|
||||
if(!in_array($file->upload_target_srl, ${$file->upload_target_type.'_srls'}))
|
||||
$var = $file->upload_target_type . '_srls';
|
||||
if (!in_array($target_srl, $$var))
|
||||
{
|
||||
${$file->upload_target_type.'_srls'}[] = $target_srl;
|
||||
$$var[] = $target_srl;
|
||||
}
|
||||
}
|
||||
if (!in_array($file->module_srl, $mod_srls))
|
||||
{
|
||||
$mod_srls[] = $file->module_srl;
|
||||
}
|
||||
|
||||
$file_list[$file_srl] = $file;
|
||||
$mod_srls[] = $file->module_srl;
|
||||
}
|
||||
// Remove duplication
|
||||
$doc_srls = array_unique($doc_srls);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue