From f79e2031ec2cae98313c8c0a335555b5e530d90a Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 28 May 2009 22:59:30 +0000 Subject: [PATCH] Add the Ogone plugin to any new configs created in 7.7.7, using the default site config. --- docs/upgrades/upgrade_7.7.7-7.7.8.pl | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/docs/upgrades/upgrade_7.7.7-7.7.8.pl b/docs/upgrades/upgrade_7.7.7-7.7.8.pl index fb7434706..eee646be0 100644 --- a/docs/upgrades/upgrade_7.7.7-7.7.8.pl +++ b/docs/upgrades/upgrade_7.7.7-7.7.8.pl @@ -32,6 +32,7 @@ my $session = start(); # this line required # upgrade functions go here messageStateCleanup($session); +addOgoneToConfig( $session ); finish($session); # this line required @@ -76,6 +77,16 @@ sub messageStateCleanup { $sth->finish; } ## end sub messageStateCleanup +#---------------------------------------------------------------------------- +sub addOgoneToConfig { + my $session = shift; + print "\tAdding Ogone payment plugin..." unless $quiet; + + $session->config->addToArray('paymentDrivers', 'WebGUI::Shop::PayDriver::Ogone'); + + print "Done\n" unless $quiet; +} + # -------------- DO NOT EDIT BELOW THIS LINE --------------------------------