Index: branches/2.8.x/CHANGELOG
===================================================================
--- branches/2.8.x/CHANGELOG	(revision 2112)
+++ branches/2.8.x/CHANGELOG	(revision 2113)
@@ -11,6 +11,8 @@
 ! = Update/Change
 ===============================================================================
 
+01 Dec-2014 Build 2113 Manuela v.d.Decken(DarkViper)
++ framework/UpgradeHelper added new method convInfoIni2InfoPhp()
 25 Nov-2014 Build 2112 Manuela v.d.Decken(DarkViper)
 ! module/show_menu2/  Changed global Constants into class constants
 25 Nov-2014 Build 2111 Manuela v.d.Decken(DarkViper)
Index: branches/2.8.x/wb/admin/interface/version.php
===================================================================
--- branches/2.8.x/wb/admin/interface/version.php	(revision 2112)
+++ branches/2.8.x/wb/admin/interface/version.php	(revision 2113)
@@ -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', '2112');
+if(!defined('REVISION')) define('REVISION', '2113');
 if(!defined('SP')) define('SP', '');
Index: branches/2.8.x/wb/framework/UpgradeHelper.php
===================================================================
--- branches/2.8.x/wb/framework/UpgradeHelper.php	(revision 2112)
+++ branches/2.8.x/wb/framework/UpgradeHelper.php	(revision 2113)
@@ -341,5 +341,47 @@
 	}
 
 
+    static public function convInfoIni2InfoPhp($sIniDir)
+    {
+        $aVarTypePrefixes = array(
+            'template' => 'template',
+            'theme'    => 'template',
+            'tool'     => 'module',
+            'page'     => 'module',
+            'snippet'  => 'module'
+        );
+        $aNeededVars = array_flip(
+            array('directory','name','function','version','platform','author','license','license_terms','description')
+        );
+        $aRetval = array();
+        $sIniDir = rtrim(str_replace('\\', '/', $sIniDir), '/').'/';
+        if (is_readable($sIniDir.'info.ini')) {
+            if (($ini = parse_ini_file($sIniDir.'info.ini', true))) {
+                if (!array_key_exists($ini['info']['type'], $aVarTypePrefixes)) {
+                    return null;
+                }
+                $aRetval['prefix'] = $aVarTypePrefixes[$ini['info']['type']];
+                $aRetval['function'] = $ini['info']['type'];
+                unset($aNeededVars['function']);
+                foreach ($ini['info'] as $sVar => $sValue) {
+                    $aRetval[$sVar] = $sValue;
+                    unset($aNeededVars[$sVar]);
+                }
+                if (isset($ini['platform']['versions'])) {
+                    $aRetval['platform'] = $ini['platform']['versions'];
+                    unset($aNeededVars['platform']);
+                }
+                if  (sizeof($aNeededVars) > 0) {
+                    return null;
+                }
+            } else {
+                return null;
+            }
+        } else {
+            return null;
+        }
+        return $aRetval;
+    } // end of function Ini2PhpInfo
+
 } // end of class UpgradeHelper
 
