Don't delete the special state unless we set it. Fixes bug #11938

This commit is contained in:
Colin Kuskie 2010-11-01 08:22:30 -07:00
parent 7219e21f86
commit 1c63a65377
2 changed files with 4 additions and 1 deletions

View file

@ -271,7 +271,9 @@ foreach my $filename (keys %config) {
chdir($currentPath);
my $session = WebGUI::Session->open($webguiRoot,$filename);
print "\tSetting site upgrade completed..." unless ($quiet);
$session->setting->remove('specialState');
unless ($skipMaintenance) {
$session->setting->remove('specialState');
}
$session->close();
print "OK\n" unless ($quiet);
}