Bug 16019: Add a warning in the update DB process if intranetcolorstylesheet=blue.css
authorJonathan Druart <jonathan.druart@bugs.koha-community.org>
Fri, 18 Mar 2016 16:34:09 +0000 (16:34 +0000)
committerBrendan Gallagher <brendan@bywatersolutions.com>
Tue, 22 Mar 2016 01:01:24 +0000 (01:01 +0000)
Signed-off-by: Katrin Fischer <katrin.fischer.83@web.de>
installer/data/mysql/updatedatabase.pl

index c3cf05d..3b1f7b5 100755 (executable)
@@ -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.