Bugzilla – Attachment 49323 Details for
Bug 16019
Remove unused blue.css
Home
|
New
|
Browse
|
Search
|
[?]
|
Reports
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
Bug 16019: Add a warning in the update DB process if intranetcolorstylesheet=blue.css
Bug-16019-Add-a-warning-in-the-update-DB-process-i.patch (text/plain), 1.42 KB, created by
Jonathan Druart
on 2016-03-18 16:34:48 UTC
(
hide
)
Description:
Bug 16019: Add a warning in the update DB process if intranetcolorstylesheet=blue.css
Filename:
MIME Type:
Creator:
Jonathan Druart
Created:
2016-03-18 16:34:48 UTC
Size:
1.42 KB
patch
obsolete
>From 8b075a656e012bd414ba4d57762ac9514eb260d0 Mon Sep 17 00:00:00 2001 >From: Jonathan Druart <jonathan.druart@bugs.koha-community.org> >Date: Fri, 18 Mar 2016 16:34:09 +0000 >Subject: [PATCH] Bug 16019: Add a warning in the update DB process if > intranetcolorstylesheet=blue.css > >--- > 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. >-- >2.7.0
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
|
Splinter Review
Attachments on
bug 16019
:
48861
|
48925
|
49323
|
49324
|
49355
|
49356