X-Git-Url: https://git.mxchange.org/?p=mailer.git;a=blobdiff_plain;f=inc%2Fload_extensions.php;h=975ffc393ecb60f04f2d78377cdd6dd76c093505;hp=c281a99cd7a2a3b4093e956f957b9a5c949da43b;hb=e32b39ab4a4cd504b2e27a238dac38b1a3c9d560;hpb=f26aab4a55972825a0d3ef9346c8c8dea8752b7b diff --git a/inc/load_extensions.php b/inc/load_extensions.php index c281a99cd7..975ffc393e 100644 --- a/inc/load_extensions.php +++ b/inc/load_extensions.php @@ -46,7 +46,7 @@ if (!defined('__SECURITY')) { // Init variables EXT_INIT_CSS_FILES(); -$ADD = ""; +$add = ""; // Init cache instance and array $GLOBALS['cache_instance'] = null; @@ -196,17 +196,17 @@ if ($GLOBALS['cache_mode'] == "load") { // If current user is not admin load only activated extensions. But load // them all if we are going to init the cache files. The admin shall use // every available extension for testing purposes. - if ((!IS_ADMIN()) && ($GLOBALS['cache_mode'] != "init")) $ADD = " WHERE ext_active='Y'"; + if ((!IS_ADMIN()) && ($GLOBALS['cache_mode'] != "init")) $add = " WHERE ext_active='Y'"; if (GET_EXT_VERSION("sql_patches") >= "0.0.6") { // Query with CSS file from DB $res_ext_crt = SQL_QUERY("SELECT id AS ext_id, ext_name, ext_has_css AS ext_css, ext_active, ext_version -FROM `{!_MYSQL_PREFIX!}_extensions`".$ADD." +FROM `{!_MYSQL_PREFIX!}_extensions`".$add." ORDER BY ext_name", __FILE__, __LINE__); } else { // Old obsolete query string $res_ext_crt = SQL_QUERY("SELECT id AS ext_id, ext_name, ext_name, ext_active, ext_version -FROM `{!_MYSQL_PREFIX!}_extensions`".$ADD." +FROM `{!_MYSQL_PREFIX!}_extensions`".$add." ORDER BY ext_name", __FILE__, __LINE__); } }