diff --git a/e107_languages/English/lan_upload.php b/e107_languages/English/lan_upload.php index 1315836bf..31dced413 100644 --- a/e107_languages/English/lan_upload.php +++ b/e107_languages/English/lan_upload.php @@ -47,11 +47,12 @@ define("LAN_413", "Description"); define("LAN_414", "Working demo"); define("LAN_415", "enter URL to site where demo can be viewed"); -// define("LAN_417", "Upload File"); +// define("LAN_417", "Upload File"); // LAN_UL_040 define("LAN_418", "Absolute maximum file size: "); -define("DOWLAN_11", "Category"); +// define("DOWLAN_11", "Category"); LAN_CATEGORY. define("LAN_419", "Allowed filetypes"); define("LAN_420", "fields are required"); define("LAN_UL_039", "Submit and Upload"); // LAN_416 +define("LAN_UL_040", "Upload File"); diff --git a/upload.php b/upload.php index 2b62036a3..97664b1d8 100644 --- a/upload.php +++ b/upload.php @@ -11,6 +11,9 @@ require_once("class2.php"); e107::coreLan('upload'); +$bcLans = ['LAN_417'=>'LAN_UL_040']; +e107::getLanguage()->bcDefs($bcLans); + if (!isset($pref['upload_enabled']) ||( varset($pref['upload_class']) == 255)) { e107::redirect(); @@ -269,20 +272,20 @@ class userUpload $text = "
- +
- + "; + $allowed_filetypes .= ""; } $allowed_filetypes .= "
".DOWLAN_11.":".LAN_CATEGORY.": "; // require_once(e_CORE."shortcodes/batch/download_shortcodes.php"); // $dlparm = (isset($download_category)) ? $download_category : ""; // $text .= $tp->parseTemplate("{DOWNLOAD_CATEGORY_SELECT={$dlparm}}",true,$download_shortcodes); - $configs = e107::getAddonConfig('e_upload','','config'); + $configs = e107::getAddonConfig('e_upload'); $optArray = e107::getAddonConfig('e_upload','','category'); @@ -311,7 +314,7 @@ class userUpload if (count($a_filetypes) == 0) { - $ns->tablerender(LAN_417, LAN_UL_025); + $ns->tablerender(defset('LAN_UL_040', 'Upload File'), LAN_UL_025); return; } @@ -326,7 +329,7 @@ class userUpload foreach ($a_filetypes as $type => $size) { - $allowed_filetypes .= "
{$type}".eHelper::parseMemorySize($size,0)."
".$type."".eHelper::parseMemorySize($size,0)."
"; @@ -407,7 +410,7 @@ class userUpload
"; - $ns->tablerender(LAN_417, $text); + $ns->tablerender(defset('LAN_UL_040', 'Upload File'), $text); } @@ -416,7 +419,7 @@ class userUpload function sc_author() { $poster = ''; - return ""; + return ""; }