1
0
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:
Cameron
2016-12-03 20:47:26 -08:00
parent 03a6a63694
commit 7adf8590f6
5 changed files with 59 additions and 14 deletions

View File

@@ -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').'">