mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 17:21:39 +09:00
Remove unnecessary code from previous versions
This commit is contained in:
parent
22cb4c552a
commit
6ff3f34d3e
1 changed files with 2 additions and 11 deletions
|
|
@ -198,10 +198,8 @@ class editorModel extends editor
|
|||
$file_config = $oFileModel->getUploadConfig();
|
||||
$file_config->allowed_attach_size = $file_config->allowed_attach_size*1024*1024;
|
||||
$file_config->allowed_filesize = $file_config->allowed_filesize*1024*1024;
|
||||
if (PHP_INT_SIZE < 8)
|
||||
{
|
||||
$file_config->allowed_filesize = min($file_config->allowed_filesize, 2147483647);
|
||||
}
|
||||
|
||||
// Calculate the appropriate chunk size.
|
||||
$file_config->allowed_chunk_size = min(FileHandler::returnBytes(ini_get('upload_max_filesize')), FileHandler::returnBytes(ini_get('post_max_size')) * 0.95, 64 * 1024 * 1024);
|
||||
if ($file_config->allowed_chunk_size > 4 * 1048576)
|
||||
{
|
||||
|
|
@ -219,13 +217,6 @@ class editorModel extends editor
|
|||
$file_config->allowed_filesize = min($file_config->allowed_filesize, FileHandler::returnBytes(ini_get('upload_max_filesize')), FileHandler::returnBytes(ini_get('post_max_size')));
|
||||
$file_config->allowed_chunk_size = 0;
|
||||
}
|
||||
|
||||
// Do not allow chunked uploads in XpressEditor.
|
||||
if (starts_with($option->editor_skin, 'xpresseditor'))
|
||||
{
|
||||
$file_config->allowed_filesize = min($file_config->allowed_filesize, FileHandler::returnBytes(ini_get('upload_max_filesize')), FileHandler::returnBytes(ini_get('post_max_size')));
|
||||
$file_config->allowed_chunk_size = 0;
|
||||
}
|
||||
|
||||
Context::set('file_config',$file_config);
|
||||
// Configure upload status such as file size
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue