Bug 22880: Use placeholders
Always. Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz> Signed-off-by: Hayley Mapley <hayleymapley@catalyst.net.nz> Signed-off-by: Lisette Scheer <lisettes@latahlibrary.org> Signed-off-by: Marcel de Rooy <m.de.rooy@rijksmuseum.nl> Signed-off-by: Martin Renvoize <martin.renvoize@ptfs-europe.com>
This commit is contained in:
parent
ba0eccdf8d
commit
29bfa68800
1 changed files with 1 additions and 1 deletions
|
@ -11,7 +11,7 @@ if( CheckVersion( $DBversion ) ) {
|
|||
foreach my $lang ( @langs ) {
|
||||
print "Inserting opacheader contents into $lang news item...\n";
|
||||
# If there is a value in the opacheader preference, insert it into opac_news
|
||||
$dbh->do("INSERT INTO opac_news (branchcode, lang, title, content ) VALUES (NULL, ?, 'opacheader $lang', ?)", undef, "opacheader_$lang", $opacheader);
|
||||
$dbh->do("INSERT INTO opac_news (branchcode, lang, title, content ) VALUES (NULL, ?, '', ?)", undef, "opacheader_$langs[0]", $opacheader);
|
||||
}
|
||||
}
|
||||
# Remove the opacheader system preference
|
||||
|
|
Loading…
Reference in a new issue