Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 2043)
+++ branches/2.8.x/CHANGELOG	(revision 2044)
@@ -12,6 +12,8 @@
 ===============================================================================
 
 
+19 Dec-2013 Build 2044 Dietmar Woellbrink (Luisehahne)
+# /admin/modules/install.php:: fixed Fileupload error messages
 19 Dec-2013 Build 2043 Dietmar Woellbrink (Luisehahne)
 + /admin/addons/languages/ add more Language Files (Tks To jacobi22)
 18 Dec-2013 Build 2042 Dietmar Woellbrink (Luisehahne)
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 2043)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 2044)
@@ -51,5 +51,5 @@
 
 // check if defined to avoid errors during installation (redirect to admin panel fails if PHP error/warnings are enabled)
 if(!defined('VERSION')) define('VERSION', '2.8.4');
-if(!defined('REVISION')) define('REVISION', '2043');
+if(!defined('REVISION')) define('REVISION', '2044');
 if(!defined('SP')) define('SP', '');
Index: branches/2.8.x/wb/admin/modules/install.php
===================================================================
--- branches/2.8.x/wb/admin/modules/install.php	(revision 2043)
+++ branches/2.8.x/wb/admin/modules/install.php	(revision 2044)
@@ -19,8 +19,14 @@
 error_reporting(E_ALL ^ E_NOTICE ^ E_WARNING);
 
 // Setup admin object
-require('../../config.php');
-require_once(WB_PATH.'/framework/class.admin.php');
+//require('../../config.php');
+$config_file = realpath('../../config.php');
+if(file_exists($config_file) && !defined('WB_URL'))
+{
+	require($config_file);
+}
+
+//require_once(WB_PATH.'/framework/class.admin.php');
 $admin = new admin('Addons', 'modules_install', false);
 if( !$admin->checkFTAN() )
 {
@@ -51,26 +57,35 @@
 		$admin->print_error($MESSAGE['GENERIC_BAD_PERMISSIONS']);
 	}
 } else {
+    $iErrorMessage = ( isset($_FILES['userfile']['error']) && ( $_FILES['userfile']['error'] > 0 ) ? $_FILES['userfile']['error'] : UNKNOW_UPLOAD_ERROR );
 // index for language files
 	$key = 'UNKNOW_UPLOAD_ERROR';
-    switch ($error_code) {
+    switch ( $iErrorMessage ) {
         case UPLOAD_ERR_INI_SIZE:
             $key = 'UPLOAD_ERR_INI_SIZE';
+            break;
         case UPLOAD_ERR_FORM_SIZE:
             $key = 'UPLOAD_ERR_FORM_SIZE';
+            break;
         case UPLOAD_ERR_PARTIAL:
             $key = 'UPLOAD_ERR_PARTIAL';
+            break;
         case UPLOAD_ERR_NO_FILE:
             $key = 'UPLOAD_ERR_NO_FILE';
-        case UPLOAD_ERR_NO_TMP_DIR:
+             break;
+       case UPLOAD_ERR_NO_TMP_DIR:
             $key = 'UPLOAD_ERR_NO_TMP_DIR';
+            break;
         case UPLOAD_ERR_CANT_WRITE:
             $key = 'UPLOAD_ERR_CANT_WRITE';
+            break;
         case UPLOAD_ERR_EXTENSION:
             $key = 'UPLOAD_ERR_EXTENSION';
+            break;
         default:
             $key = 'UNKNOW_UPLOAD_ERROR';
     }
+
 	$admin->print_error($MESSAGE[$key].'<br />'.$MESSAGE['GENERIC_CANNOT_UPLOAD']);
 }
 
