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

(-)a/installer/data/mysql/updatedatabase.pl (-3 lines)
Lines 8791-8802 while (readdir $dirh) { Link Here
8791
    next unless $_ =~ /\.sql$/; # skip non SQL files
8791
    next unless $_ =~ /\.sql$/; # skip non SQL files
8792
    # open and read file;
8792
    # open and read file;
8793
    open FILE, "<",  C4::Context->config('intranetdir') . '/installer/data/mysql/db_update/'.$_ or die "ERROR, impossible to open $_";
8793
    open FILE, "<",  C4::Context->config('intranetdir') . '/installer/data/mysql/db_update/'.$_ or die "ERROR, impossible to open $_";
8794
    my $sql_to_execute;
8795
    while ( <FILE> ) {
8794
    while ( <FILE> ) {
8796
        my $line = $_;
8795
        my $line = $_;
8797
        $line =~ s/\n//g;
8796
        $line =~ s/\n//g;
8798
        $dbh->do($line) if $line;
8797
        $dbh->do($line) if $line;
8799
        $sql_to_execute .= $line;
8800
    }
8798
    }
8801
}
8799
}
8802
8800
8803
- 

Return to bug 13068