mirror of
https://github.com/e107inc/e107.git
synced 2025-08-26 07:44:49 +02:00
Fixes media-manager upload issue when no limit found. legacyPath option added to imagepicker()
This commit is contained in:
@@ -1095,7 +1095,12 @@ class media_admin_ui extends e_admin_ui
|
||||
|
||||
// if 'for' has no value, files are placed in /temp and not added to the db.
|
||||
|
||||
$maxFileSize = e107::pref('core', 'upload_maxfilesize','20M');
|
||||
$maxFileSize = e107::pref('core', 'upload_maxfilesize');
|
||||
|
||||
if(empty($maxFileSize))
|
||||
{
|
||||
$maxFileSize = "20M";
|
||||
}
|
||||
|
||||
$text = "<h4>".IMALAN_145."</h4>";
|
||||
$text .= '<div id="uploader" data-max-size="'.str_replace('M','mb',$maxFileSize).'" rel="'.e_JS.'plupload/upload.php?for='.$this->getQuery('for').'">
|
||||
|
Reference in New Issue
Block a user