From 0b8bf12d46a3407348bdb6ddb3668ed14da4eea4 Mon Sep 17 00:00:00 2001 From: Jonathan Druart Date: Fri, 18 Mar 2016 16:34:09 +0000 Subject: [PATCH] [PASSED QA] Bug 16019: Add a warning in the update DB process if intranetcolorstylesheet=blue.css Signed-off-by: Katrin Fischer --- installer/data/mysql/updatedatabase.pl | 14 ++++++++++++++ 1 file changed, 14 insertions(+) diff --git a/installer/data/mysql/updatedatabase.pl b/installer/data/mysql/updatedatabase.pl index c3cf05d..3b1f7b5 100755 --- a/installer/data/mysql/updatedatabase.pl +++ b/installer/data/mysql/updatedatabase.pl @@ -12022,6 +12022,20 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { SetVersion($DBversion); } + +$DBversion = "XXX"; +if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) { + + my $c = $dbh->selectrow_array('SELECT COUNT(*) FROM systempreferences WHERE variable="intranetcolorstylesheet" AND value="blue.css"'); + + if ( $c ) { + print "WARNING: You are using a stylesheeet which has been removed from the Koha codebase.\n"; + print "Update your intranetcolorstylesheet.\n"; + } + print "Upgrade to $DBversion done (Bug 16019 - Check intranetcolorstylesheet for blue.css)\n"; + SetVersion($DBversion); +} + # DEVELOPER PROCESS, search for anything to execute in the db_update directory # SEE bug 13068 # if there is anything in the atomicupdate, read and execute it. -- 1.9.1