From 6735cc4d5d828b4084277fd46ec4409bd53d4a99 Mon Sep 17 00:00:00 2001 From: Miles Lott Date: Sun, 3 Feb 2002 17:02:56 +0000 Subject: [PATCH] Add a check to setup to be able to exclude apps from the mass upgrade process. WCM will be the first to use this, others may follow... --- setup/inc/class.setup_detection.inc.php | 17 +++++++++++++++++ setup/index.php | 3 ++- 2 files changed, 19 insertions(+), 1 deletion(-) diff --git a/setup/inc/class.setup_detection.inc.php b/setup/inc/class.setup_detection.inc.php index de274e5b45..ffe71f527a 100755 --- a/setup/inc/class.setup_detection.inc.php +++ b/setup/inc/class.setup_detection.inc.php @@ -188,6 +188,23 @@ return $setup_info; } + /* + Called during the mass upgrade routine (Stage 1) to check for apps + that wish to be excluded from this process. + */ + function upgrade_exclude($setup_info) + { + @reset ($setup_info); + while(list($key,$value) = @each($setup_info)) + { + if(isset($value['no_mass_update'])) + { + unset($setup_info[$key]); + } + } + return $setup_info; + } + function check_header() { if(!file_exists('../header.inc.php')) diff --git a/setup/index.php b/setup/index.php index 4dce950b15..581cf0af3e 100644 --- a/setup/index.php +++ b/setup/index.php @@ -241,7 +241,8 @@ $setup_info = $phpgw_setup->process_droptables($setup_info); break; case 'new': - /* process all apps and langs(last param True) */ + /* process all apps and langs(last param True), excluding apps with the no_mass_update flag set. */ + $setup_info = $phpgw_setup->upgrade_exclude($setup_info); $setup_info = $phpgw_setup->process_pass($setup_info,'new',$DEBUG,True); $included = True; include('lang.php');