Subversion Repositories oidplus

Rev

Rev 1430 | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 1430 Rev 1439
Line 151... Line 151...
151
                } catch (\Exception $e) {
151
                } catch (\Exception $e) {
152
                        throw new OIDplusConfigInitializationException(trim(_L('Connection to the database failed!').' ' . $e->getMessage()));
152
                        throw new OIDplusConfigInitializationException(trim(_L('Connection to the database failed!').' ' . $e->getMessage()));
153
                }
153
                }
154
 
154
 
155
                $this->conn->createCollation('NATURAL_CMP', 'strnatcmp'); // we need that for natSort()
155
                $this->conn->createCollation('NATURAL_CMP', 'strnatcmp'); // we need that for natSort()
156
                $this->conn->enableExceptions(true); // Throw exceptions instead of PHP warnings
156
                $this->conn->enableExceptions(true); // Throw exceptions instead of PHP warnings (preferred as of PHP 8.3)
157
 
157
 
158
                $this->prepare_cache = array();
158
                $this->prepare_cache = array();
159
                $this->last_error = null;
159
                $this->last_error = null;
160
        }
160
        }
161
 
161