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 = "