1
0
mirror of https://github.com/e107inc/e107.git synced 2025-08-06 14:46:56 +02:00

Issue #66 - e_upload spec complete. Some LANs needed. Upload form may now be utilized by multiple plugins.

This commit is contained in:
Cameron
2016-03-07 18:00:47 -08:00
parent 6a26ff7bd5
commit 724b1697b3
3 changed files with 182 additions and 87 deletions

View File

@@ -282,9 +282,18 @@ class userUpload
// $dlparm = (isset($download_category)) ? $download_category : "";
// $text .= $tp->parseTemplate("{DOWNLOAD_CATEGORY_SELECT={$dlparm}}",true,$download_shortcodes);
$configs = e107::getAddonConfig('e_upload','','config');
$optArray = e107::getAddonConfig('e_upload','','category');
$text .= e107::getForm()->select('category', $optArray, $_POST['category'], array('default'=>''));
$newArray = array();
foreach($optArray as $plug=>$opts)
{
$name = $configs[$plug]['name'];
$newArray[$name] = $opts;
}
$text .= e107::getForm()->select('category', $newArray, $_POST['category'], array('default'=>''));
$text .= "</td>