From 4cfa20dcbd27a0a7c343b56f292fea6dc2875c9e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Tue, 3 Nov 2009 15:45:50 +0000 Subject: [PATCH] Sort order changed to have nicer cache files for easier debug --- inc/loader/load_cache-modules.php | 16 ++++++++++++---- 1 file changed, 12 insertions(+), 4 deletions(-) diff --git a/inc/loader/load_cache-modules.php b/inc/loader/load_cache-modules.php index d210b50b72..e9953b3bcc 100644 --- a/inc/loader/load_cache-modules.php +++ b/inc/loader/load_cache-modules.php @@ -77,12 +77,20 @@ if (($GLOBALS['cache_instance']->loadCacheFile('modules')) && ($GLOBALS['cache_i // Load all modules and their data if (isExtensionInstalledAndNewer('sql_patches', '0.3.6')) { // Load has_menu - $result = SQL_QUERY('SELECT id, module, title, locked, hidden, admin_only, title, mem_only, has_menu -FROM `{?_MYSQL_PREFIX?}_mod_reg` ORDER BY `id`', __FILE__, __LINE__); + $result = SQL_QUERY('SELECT + `id`, `module`, `title`, `locked`, `hidden`, `admin_only`, `title`, `mem_only`, `has_menu` +FROM + `{?_MYSQL_PREFIX?}_mod_reg` +ORDER BY + `module` ASC', __FILE__, __LINE__); } else { // Don't load has_menu - $result = SQL_QUERY('SELECT id, module, title, locked, hidden, admin_only, title, mem_only -FROM `{?_MYSQL_PREFIX?}_mod_reg` ORDER BY `id`', __FILE__, __LINE__); + $result = SQL_QUERY('SELECT + `id`, `module`, `title`, `locked`, `hidden`, `admin_only`, `title`, `mem_only` +FROM + `{?_MYSQL_PREFIX?}_mod_reg` +ORDER BY + `module` ASC', __FILE__, __LINE__); } // Cache all data -- 2.39.5