Revision 2115
Added by darkviper almost 11 years ago
| UpgradeHelper.php | ||
|---|---|---|
| 340 | 340 |
return $aRetval; |
| 341 | 341 |
} |
| 342 | 342 |
|
| 343 |
|
|
| 343 |
/** |
|
| 344 |
* import info.ini as 'old style' variables |
|
| 345 |
* @param string $sIniDir the directory where the info.ini is located |
|
| 346 |
* @return array of settings or null on error |
|
| 347 |
*/ |
|
| 344 | 348 |
static public function convInfoIni2InfoPhp($sIniDir) |
| 345 | 349 |
{
|
| 346 | 350 |
$aVarTypePrefixes = array( |
| ... | ... | |
| 351 | 355 |
'snippet' => 'module' |
| 352 | 356 |
); |
| 353 | 357 |
$aNeededVars = array_flip( |
| 354 |
array('directory','name','function','version','platform','author','license','license_terms','description')
|
|
| 358 |
array( |
|
| 359 |
'directory','name','function','version','platform','platform_versions', |
|
| 360 |
'platform_minPHP','author','license','license_terms','description' |
|
| 361 |
) |
|
| 355 | 362 |
); |
| 356 | 363 |
$aRetval = array(); |
| 357 | 364 |
$sIniDir = rtrim(str_replace('\\', '/', $sIniDir), '/').'/';
|
| ... | ... | |
| 371 | 378 |
$aRetval['platform'] = $ini['platform']['versions']; |
| 372 | 379 |
unset($aNeededVars['platform']); |
| 373 | 380 |
} |
| 381 |
if (isset($ini['platform']['versions'])) {
|
|
| 382 |
$aRetval['platform_versions'] = $ini['platform']['versions']; |
|
| 383 |
unset($aNeededVars['platform_versions']); |
|
| 384 |
} |
|
| 385 |
if (isset($ini['platform']['minPHP'])) {
|
|
| 386 |
$aRetval['platform_minPHP'] = $ini['platform']['minPHP']; |
|
| 387 |
unset($aNeededVars['platform_minPHP']); |
|
| 388 |
} |
|
| 374 | 389 |
if (sizeof($aNeededVars) > 0) {
|
| 375 | 390 |
return null; |
| 376 | 391 |
} |
Also available in: Unified diff
+ framework/UpgradeHelper additiona vars to method convInfoIni2InfoPhp()
! module/show_menu2/ the directoryname of this 'Snippet' has been changed to ShowMenu2.
- show_menu2: The Flag SM2::BUFFER has been removed
+ show_menu2: The Flag SM2::NOBUFFER was added