Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 1768)
+++ branches/2.8.x/CHANGELOG	(revision 1769)
@@ -13,6 +13,8 @@
 
 
 
+23 Sep-2012 Build 1769 Dietmar Woellbrink (Luisehahne)
+# typofix in upgrade-script, fixed wrong count for language and modules folder
 23 Sep-2012 Build 1768 Dietmar Woellbrink (Luisehahne)
 + add 2 fields custom01, custom02 with VARCHAR( 255 ) to table pages
 ! update upgrade-script with this 2 fields
Index: branches/2.8.x/wb/upgrade-script.php
===================================================================
--- branches/2.8.x/wb/upgrade-script.php	(revision 1768)
+++ branches/2.8.x/wb/upgrade-script.php	(revision 1769)
@@ -576,7 +576,7 @@
 	    echo ($database->query($sql)) ? " $OK<br />" : " $FAIL!<br />";
 	}
 
-    echo "<h4>Adding/updating fiekds on table mod_menu_link</h4>";
+    echo "<h4>Adding/updating field on table mod_menu_link</h4>";
 	/**********************************************************
      *  - Add field "redirect_type" to table "mod_menu_link"
      *  has to be moved later to upgrade.php in modul menu_link, because modul can be removed
@@ -592,7 +592,7 @@
 		echo ($database->field_modify($table_name, $field_name, $description) ? " $OK<br />" : " $FAIL!<br />");
 	}
 
-    echo "<h4>Adding/updating fiekds on table pages</h4>";
+    echo "<h4>Adding/updating field on table pages</h4>";
 	/**********************************************************
 	 *  - Add field "page_trail" to table "pages"
 	 */
@@ -959,7 +959,7 @@
 	// Load all modules
 	if( ($handle = opendir(WB_PATH.'/modules/')) ) {
 		while(false !== ($file = readdir($handle))) {
-			if($file != '' AND substr($file, 0, 1) != '.' AND $file != 'admin.php' AND $file != 'index.php') {
+			if($file != '' && substr($file, 0, 1) != '.' && is_dir(WB_PATH.'/modules/'.$file) ) {
                 $iFound++;
 				$iLoaded = load_module(WB_PATH.'/modules/'.$file ) ? $iLoaded+1 : $iLoaded;
 			   // 	upgrade_module($file, true);
@@ -977,8 +977,10 @@
 	if( ($handle = opendir(WB_PATH.'/templates/')) ) {
 		while(false !== ($file = readdir($handle))) {
 			if($file != '' AND substr($file, 0, 1) != '.' AND $file != 'index.php') {
+
                 $iFound++;
 				$iLoaded = (load_template(WB_PATH.'/templates/'.$file)==true) ? $iLoaded+1 : $iLoaded;
+
 			}
 		}
 		closedir($handle);
@@ -992,7 +994,7 @@
 	// Load all languages
 	if( ($handle = opendir(WB_PATH.'/languages/')) ) {
 		while(false !== ($file = readdir($handle))) {
-			if($file != '' AND substr($file, 0, 1) != '.' AND $file != 'index.php') {
+			if($file != '' AND (preg_match('#^([A-Z]{2}.php)#', basename($file)))) {
                 $iFound++;
 				$iLoaded = load_language(WB_PATH.'/languages/'.$file) ? $iLoaded+1 : $iLoaded;
 			}
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 1768)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 1769)
@@ -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.3');
-if(!defined('REVISION')) define('REVISION', '1768');
+if(!defined('REVISION')) define('REVISION', '1769');
 if(!defined('SP')) define('SP', '');
