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

(-)a/installer/data/mysql/updatedatabase.pl (-1 / +18 lines)
Lines 6834-6839 if (C4::Context->preference("Version") < TransformToNum($DBversion)) { Link Here
6834
    SetVersion($DBversion);
6834
    SetVersion($DBversion);
6835
}
6835
}
6836
6836
6837
6838
6839
$DBversion = "3.11.00.XXX";
6840
if(CheckVersion($DBversion)) {
6841
    my $intra= C4::Context->preference("intranetstylesheet");
6842
    #if this pref is not blank or starting with http, https or / [root], then
6843
    #add an additional / to the front
6844
    if($intra && $intra!~/^(\/|https?)/) {
6845
        $dbh->do("UPDATE systempreferences SET value=? WHERE variable=?",
6846
            undef,('/'.$intra,"intranetstylesheet"));
6847
        print "WARNING: Your system preference intranetstylesheet has been prefixed with a slash to make it an absolute path.\n";
6848
    }
6849
    print "Upgrade to $DBversion done (Bug 10052: Make intranetstylesheet and intranetcolorstylesheet behave exactly like their opac counterparts)\n";
6850
    SetVersion ($DBversion);
6851
}
6852
6853
6854
6837
=head1 FUNCTIONS
6855
=head1 FUNCTIONS
6838
6856
6839
=head2 TableExists($table)
6857
=head2 TableExists($table)
6840
- 

Return to bug 10052