View | Details | Raw Unified | Return to bug 22880
Collapse All | Expand All

(-)a/installer/data/mysql/atomicupdate/bug_22880-move-opacheader-to-news.perl (-2 / +1 lines)
Lines 11-17 if( CheckVersion( $DBversion ) ) { Link Here
11
        foreach my $lang ( @langs ) {
11
        foreach my $lang ( @langs ) {
12
            print "Inserting opacheader contents into $lang news item...\n";
12
            print "Inserting opacheader contents into $lang news item...\n";
13
            # If there is a value in the opacheader preference, insert it into opac_news
13
            # If there is a value in the opacheader preference, insert it into opac_news
14
            $dbh->do("INSERT INTO opac_news (branchcode, lang, title, content ) VALUES (NULL, ?, 'opacheader $lang', ?)", undef, "opacheader_$lang", $opacheader);
14
            $dbh->do("INSERT INTO opac_news (branchcode, lang, title, content ) VALUES (NULL, ?, '', ?)", undef, "opacheader_$langs[0]", $opacheader);
15
        }
15
        }
16
    }
16
    }
17
    # Remove the opacheader system preference
17
    # Remove the opacheader system preference
18
- 

Return to bug 22880