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:
11
upload.php
11
upload.php
@@ -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>
|
||||
|
Reference in New Issue
Block a user