mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Allow pre-setting upload_target_type for each editor
This commit is contained in:
parent
fdc9e1e98d
commit
9a6524d63d
6 changed files with 27 additions and 6 deletions
|
|
@ -1042,6 +1042,12 @@ class FileController extends File
|
|||
}
|
||||
}
|
||||
|
||||
// Set upload target type
|
||||
if ($editor_sequence && isset($_SESSION['upload_info'][$editor_sequence]->upload_target_type))
|
||||
{
|
||||
$args->upload_target_type = strval($_SESSION['upload_info'][$editor_sequence]->upload_target_type);
|
||||
}
|
||||
|
||||
$oDB = DB::getInstance();
|
||||
$oDB->begin();
|
||||
|
||||
|
|
|
|||
|
|
@ -5,6 +5,7 @@
|
|||
<columns>
|
||||
<column name="file_srl" var="file_srl" notnull="notnull" />
|
||||
<column name="upload_target_srl" var="upload_target_srl" filter="number" default="0" notnull="notnull" />
|
||||
<column name="upload_target_type" var="upload_target_type" />
|
||||
<column name="sid" var="sid" />
|
||||
<column name="module_srl" var="module_srl" filter="number" default="0" notnull="notnull" />
|
||||
<column name="member_srl" var="member_srl" default="0" />
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue