X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=inc%2Floader%2Fload_cache-them.php;h=0b453f1b4bfa16b697f7e2c42ef028ca48b6a10c;hb=77cdaff2afb97ed32985ced906a3a95ee078c2ef;hp=673d82693c9d8a9d11ee7c89f62113295ceb5db5;hpb=323f6a7c78424b654b62b69eeb44995908a5327e;p=mailer.git diff --git a/inc/loader/load_cache-them.php b/inc/loader/load_cache-them.php index 673d82693c..0b453f1b4b 100644 --- a/inc/loader/load_cache-them.php +++ b/inc/loader/load_cache-them.php @@ -75,9 +75,9 @@ if (($cacheInstance->loadCacheFile("themes")) && ($cacheInstance->extensionVersi // Load all themes and their data if (GET_EXT_VERSION("theme") >= "0.0.7") { - $result = SQL_QUERY("SELECT id, theme_path, theme_active, theme_ver, theme_name FROM `"._MYSQL_PREFIX."_themes` ORDER BY id", __FILE__, __LINE__); + $result = SQL_QUERY("SELECT id, theme_path, theme_active, theme_ver, theme_name FROM `{!_MYSQL_PREFIX!}_themes` ORDER BY `id`", __FILE__, __LINE__); } else { - $result = SQL_QUERY("SELECT id, theme_path, theme_active, theme_ver FROM `"._MYSQL_PREFIX."_themes` ORDER BY id", __FILE__, __LINE__); + $result = SQL_QUERY("SELECT id, theme_path, theme_active, theme_ver FROM `{!_MYSQL_PREFIX!}_themes` ORDER BY `id`", __FILE__, __LINE__); } while ($data = SQL_FETCHARRAY($result)) { // Add row to cache file @@ -91,7 +91,7 @@ if (($cacheInstance->loadCacheFile("themes")) && ($cacheInstance->extensionVersi $cacheInstance->finalize(); // Reload the cache - require(__FILE__); + LOAD_INC(__FILE__); } //