Revision 1858
Added by Dietmar almost 12 years ago
upgrade-script.php | ||
---|---|---|
544 | 544 |
|
545 | 545 |
$aDebugMessage[] = (db_update_key_value( 'settings', $cfg ) ? " $OK<br />" : " $FAIL!<br />"); |
546 | 546 |
|
547 |
/********************************************************** |
|
548 |
* - Adding dev_infos to settings table |
|
549 |
*/ |
|
550 |
$aDebugMessage[] = "<span>Adding/updating modules_upgrade_list to settings table</span>"; |
|
551 |
$cfg = array( |
|
552 |
'modules_upgrade_list' => (defined('MODULES_UPGRADE_LIST') ? MODULES_UPGRADE_LIST : 'news') |
|
553 |
); |
|
554 |
|
|
555 |
$aDebugMessage[] = (db_update_key_value( 'settings', $cfg ) ? " $OK<br />" : " $FAIL!<br />"); |
|
556 |
|
|
557 |
|
|
558 | 547 |
if($bDebugModus) { |
559 | 548 |
echo implode(PHP_EOL,$aDebugMessage); |
560 | 549 |
} |
... | ... | |
998 | 987 |
* upgrade modules if newer version is available |
999 | 988 |
* $aModuleList list of proofed modules |
1000 | 989 |
*/ |
1001 |
$sModuleList = 'news,wysiwyg,form'; |
|
1002 |
$aModuleList = explode(',', (defined('MODULES_UPGRADE_LIST') ? MODULES_UPGRADE_LIST : $sModuleList)); |
|
990 |
$aModuleList = array('news','wysiwyg','form'); |
|
1003 | 991 |
echo '<h3>Step '.(++$stepID).': Upgrade proofed modules</h3>'; |
1004 |
// $aModuleList = array('news'); |
|
1005 | 992 |
foreach($aModuleList as $sModul) { |
1006 | 993 |
if(file_exists(WB_PATH.'/modules/'.$sModul.'/upgrade.php')) { |
1007 | 994 |
$currModulVersion = get_modul_version ($sModul, false); |
Also available in: Unified diff
- remove MODULES_UPGRADE_LIST input from saettings