Bug 8377 follow-up: fix update message

Add the bug number to the updatedatabase message.
This commit is contained in:
Jared Camins-Esakov 2012-12-27 09:45:50 -05:00
parent 4f1082816b
commit 8ce80b9ad4

View file

@ -6310,10 +6310,10 @@ if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
}
$DBversion = "3.11.00.011";
if ( C4::Context->preference("Version") < TransformToNum($DBversion) ) {
if ( CheckVersion($DBversion) ) {
$dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('HTML5MediaEnabled','not','Show a HTML5 media player in a tab on opac-detail.pl for media files catalogued in field 856.','not|opac|staff|both','Choice');");
$dbh->do("INSERT INTO systempreferences (variable,value,explanation,options,type) VALUES('HTML5MediaExtensions','webm|ogg|ogv|oga|vtt','Media file extensions','','free');");
print "Upgrade to $DBversion done (Add HTML5MediaEnabled and HTML5MediaExtensions sysprefs)\n";
print "Upgrade to $DBversion done (Bug 8377: Add HTML5MediaEnabled and HTML5MediaExtensions sysprefs)\n";
SetVersion ($DBversion);
}