From: Tomas Cohen Arazi Date: Sun, 10 Aug 2014 13:37:26 +0000 (-0300) Subject: Bug 12233: change opacthemes syspref from {prog|ccsr} to bootstrap X-Git-Tag: v3.18.00-beta~259 X-Git-Url: http://koha-dev.rot13.org:8081/gitweb/?a=commitdiff_plain;h=bed3add92d21c8341f3cb3a23b49ff9dff3497fd;hp=91eb56cdc483b78e7f1a64a001c52e4eab1778bd;p=koha-ffzg.git Bug 12233: change opacthemes syspref from {prog|ccsr} to bootstrap Signed-off-by: Chris Cormack --- diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index 3739f38cd3..29257a8d66 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -8917,6 +8917,15 @@ if ( CheckVersion($DBversion) ) { ('OPACFallback', 'prog', 'bootstrap|prog', 'Define the fallback theme for the OPAC interface.', 'Themes')"); print "Upgrade to $DBversion done (Bug 12539 - PROG/CCSR deprecation: Remove hardcoded theme from C4/Templates.pm)\n"; SetVersion ($DBversion); + +$DBversion = "3.17.00.XXX"; +if ( CheckVersion($DBversion) ) { + my $opac_theme = C4::Context->preference( 'opacthemes' ); + if ( $opac_theme eq 'prog' || $opac_theme eq 'ccsr' ) { + $dbh->do("UPDATE systempreferences SET value='bootstrap' WHERE variable='opacthemes'"); + } + print "Upgrade to $DBversion done (Bug 12223: 'prog' and 'ccsr' themes removed)\n"; + SetVersion($DBversion); } =head1 FUNCTIONS