X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;ds=sidebyside;f=inc%2Floader%2Fload-extension.php;h=f68a0abfcbe59442b7cbd12bb1d31eca73bb376d;hb=87a1790a6620f46451f1a8865c7153aa6b7ffec9;hp=5d6b0cbe7d4ac6a5ecc5e2c4834119f011040e21;hpb=be79afde3071dfc4d6fe845ddb75abf13534eadb;p=mailer.git diff --git a/inc/loader/load-extension.php b/inc/loader/load-extension.php index 5d6b0cbe7d..f68a0abfcb 100644 --- a/inc/loader/load-extension.php +++ b/inc/loader/load-extension.php @@ -19,7 +19,7 @@ * -------------------------------------------------------------------- * * Copyright (c) 2003 - 2009 by Roland Haeder * * Copyright (c) 2009 - 2011 by Mailer Developer Team * - * For more information visit: http://www.mxchange.org * + * 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 * @@ -139,11 +139,13 @@ if (($GLOBALS['cache_instance']->loadCacheFile('extension')) && ($GLOBALS['cache // Add more if sql_patches is recent enougth $add = ''; if (isExtensionInstalledAndNewer('sql_patches', '0.0.6')) { - $add = ', `ext_has_css` AS `ext_css`'; - } // END - if + $add = ',`ext_has_css` AS `ext_css`'; + } // END - if - // Load all modules and their data + // Query for all extensions $result = SQL_QUERY('SELECT `id` AS `ext_id`,`ext_name`,`ext_active`,`ext_version`' . $add . ' FROM `{?_MYSQL_PREFIX?}_extensions` ORDER BY `ext_name` ASC', __FILE__, __LINE__); + + // Load all entries while ($content = SQL_FETCHARRAY($result)) { // Load extension loadExtension($content['ext_name'], 'test');