X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Fdb%2Flib.php;h=9b243e68581c93f11205909d16281522bb28ecb0;hb=f2b603aed42bfdf7a94611d7bae71fe3a1048890;hp=c18c0adaa1e78ed87cf76c30fa766005b296344e;hpb=f328172e16c619d30889fac830e873f2eeef857a;p=mailer.git diff --git a/inc/db/lib.php b/inc/db/lib.php index c18c0adaa1..9b243e6858 100644 --- a/inc/db/lib.php +++ b/inc/db/lib.php @@ -16,8 +16,8 @@ * $Author:: $ * * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * - * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * Copyright (c) 2009 - 2013 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 * @@ -43,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... - debug_report_bug(__FILE__, __LINE__, '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] ?>