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 9-15 if( CheckVersion( $DBversion ) ) { Link Here
9
    |);
9
    |);
10
    if( $opacheader ){
10
    if( $opacheader ){
11
        # If there is a value in the opacheader preference, insert it into opac_news
11
        # If there is a value in the opacheader preference, insert it into opac_news
12
        $dbh->do("INSERT INTO opac_news (branchcode, lang, title, content ) VALUES (NULL, 'opacheader_$langs[0]', '', '$opacheader')");
12
        $dbh->do("INSERT INTO opac_news (branchcode, lang, title, content ) VALUES (NULL, ?, '', ?)", undef, "opacheader_$langs[0]", $opacheader);
13
    }
13
    }
14
    # Remove the opacheader system preference
14
    # Remove the opacheader system preference
15
    $dbh->do("DELETE FROM systempreferences WHERE variable='opacheader'");
15
    $dbh->do("DELETE FROM systempreferences WHERE variable='opacheader'");
16
- 

Return to bug 22880