X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fdb%2Flib.php;h=c4616d9b53ba7a30410ef0d73f19f2cd733d980c;hb=596c8ab32594401ca84abfbfe35513ddfff31bec;hp=8895d697a53b77bd2f9a9552d275b1f3a66488b8;hpb=263a089d8a499e0e26d0af9e7aa7639f88b8ca60;p=mailer.git
diff --git a/inc/db/lib.php b/inc/db/lib.php
index 8895d697a5..c4616d9b53 100644
--- a/inc/db/lib.php
+++ b/inc/db/lib.php
@@ -14,11 +14,10 @@
* $Date:: $ *
* $Tag:: 0.2.1-FINAL $ *
* $Author:: $ *
- * Needs to be in all Files and every File needs "svn propset *
- * svn:keywords Date Revision" (autoprobset!) at least!!!!!! *
* -------------------------------------------------------------------- *
* Copyright (c) 2003 - 2009 by Roland Haeder *
- * For more information visit: http://www.mxchange.org *
+ * Copyright (c) 2009 - 2012 by Mailer Developer Team *
+ * For more information visit: http://mxchange.org *
* *
* This program is free software; you can redistribute it and/or modify *
* it under the terms of the GNU General Public License as published by *
@@ -44,13 +43,17 @@ if (!defined('__SECURITY')) {
// Create include file name
$inc = sprintf("inc/db/lib-%s.php", getConfig('_DB_TYPE'));
-if (isIncludeReadable($inc)) {
- // Include abstraction layer
- loadIncludeOnce($inc);
-} else {
+// Is the database library available?
+if (!isIncludeReadable($inc)) {
// Bye, bye...
- die('Cannot load database abstraction layer ' . getConfig('_DB_TYPE') . ' -> R.I.P.');
-}
+ reportBug(__FILE__, __LINE__, 'Cannot load database library ' . getConfig('_DB_TYPE') . ' -> R.I.P.');
+} // END - if
+
+// Include abstraction layer
+loadIncludeOnce($inc);
+
+// Initialize it
+initDatabaseLayer();
// [EOF]
?>