projects
/
mailer.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
439a544
)
sql_patches/cache must now load
author
Roland Häder
<roland@mxchange.org>
Sun, 1 Mar 2009 02:15:33 +0000
(
02:15
+0000)
committer
Roland Häder
<roland@mxchange.org>
Sun, 1 Mar 2009 02:15:33 +0000
(
02:15
+0000)
inc/load_extensions.php
patch
|
blob
|
history
diff --git
a/inc/load_extensions.php
b/inc/load_extensions.php
index babd32e6af597a9fcbea314640b2954993556d1a..726591df3daee00f7e50895b2007fd29a86fd892 100644
(file)
--- 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
$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();
// Init inc pool array
$INC_POOL = array();
@@
-71,7
+74,10
@@
$INC_POOL = array();
//
if (EXT_IS_ACTIVE("cache")) {
// Load cache extension alone
//
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"))) {
// Check extension cache
switch (($GLOBALS['cache_instance']->loadCacheFile("extensions", true)) && ($GLOBALS['cache_instance']->extensionVersionMatches("sql_patches"))) {