Move fileUploadErrorMessage from Admin\Backend to Basic

Also removed the auto translate, return just string.
Is also a static method so can be called by
Basic::fileUploadErrorMessage too

Removed left over LANG settings in admin header
This commit is contained in:
Clemens Schwaighofer
2019-11-15 17:53:21 +09:00
parent 3ae3b1b761
commit 12e335c69c
3 changed files with 36 additions and 41 deletions

View File

@@ -13,7 +13,6 @@ if ($DEBUG_ALL && $ENABLE_ERROR_HANDLING) {
include BASE.LIBS."Error.Handling.php";
}
// predefine vars
$LANG = '';
$messages = array();
// import all POST vars
// extract($_POST, EXTR_SKIP);
@@ -50,10 +49,6 @@ if ($AJAX_PAGE && !$ZIP_STREAM) {
//------------------------------ class init start
// login & page access check
$login = new CoreLibs\ACL\Login(DB_CONFIG);
// post login lang check
if (isset($_SESSION['DEFAULT_LANG'])) {
$LANG = $_SESSION['DEFAULT_LANG'];
}
// create smarty object
$smarty = new CoreLibs\Template\SmartyExtend();
// create new DB class