From 85af9126d4e19a1961c44843693d5403f481484c Mon Sep 17 00:00:00 2001 From: =?utf8?q?Roland=20H=C3=A4der?= Date: Sun, 1 Mar 2009 02:15:33 +0000 Subject: [PATCH] sql_patches/cache must now load --- inc/load_extensions.php | 10 ++++++++-- 1 file changed, 8 insertions(+), 2 deletions(-) diff --git a/inc/load_extensions.php b/inc/load_extensions.php index babd32e6af..726591df3d 100644 --- a/inc/load_extensions.php +++ b/inc/load_extensions.php @@ -61,7 +61,10 @@ $GLOBALS['cache_array']['active_extensions'] = array(); $GLOBALS['cacheMode'] = "no"; // Load sql_patchrs extension alone -LOAD_EXTENSION("sql_patches"); +if (!LOAD_EXTENSION("sql_patches")) { + // Could not load sql_patches! ARGH!!! + trigger_error("Cannot load extension sql_patches."); +} // END - if // Init inc pool array $INC_POOL = array(); @@ -71,7 +74,10 @@ $INC_POOL = array(); // if (EXT_IS_ACTIVE("cache")) { // Load cache extension alone - LOAD_EXTENSION("cache"); + if (!LOAD_EXTENSION("cache")) { + // Extension 'cache' was not loaded + trigger_error("Cannot load extension cache."); + } // END - if // Check extension cache switch (($GLOBALS['cache_instance']->loadCacheFile("extensions", true)) && ($GLOBALS['cache_instance']->extensionVersionMatches("sql_patches"))) { -- 2.39.2