Subversion Repositories oidplus

Rev

Rev 817 | Rev 1050 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 817 Rev 863
Line 119... Line 119...
119
                                $filename = OIDplus::localpath().$filename;
119
                                $filename = OIDplus::localpath().$filename;
120
                        }
120
                        }
121
 
121
 
122
                        $this->conn = new SQLite3($filename, $flags, $encryption);
122
                        $this->conn = new SQLite3($filename, $flags, $encryption);
123
                } catch (Exception $e) {
123
                } catch (Exception $e) {
124
                        throw new OIDplusConfigInitializationException(_L('Connection to the database failed!').' ' . $e->getMessage());
124
                        throw new OIDplusConfigInitializationException(trim(_L('Connection to the database failed!').' ' . $e->getMessage()));
125
                }
125
                }
126
 
126
 
127
                $this->conn->createCollation('NATURAL_CMP', 'strnatcmp'); // we need that for natSort()
127
                $this->conn->createCollation('NATURAL_CMP', 'strnatcmp'); // we need that for natSort()
128
                $this->conn->enableExceptions(true); // Throw exceptions instead of PHP warnings
128
                $this->conn->enableExceptions(true); // Throw exceptions instead of PHP warnings
129
 
129