Skip to content

Commit

Permalink
Merge pull request e107inc#3037 from Deltik/fix-3033
Browse files Browse the repository at this point in the history
Fixes: e107inc#3033 Defers setting the SITEURL constant and dependencies until MySQL is connected
  • Loading branch information
CaMer0n authored Feb 13, 2018
2 parents de7fb1d + d1a69b0 commit be062da
Show file tree
Hide file tree
Showing 3 changed files with 186 additions and 173 deletions.
6 changes: 5 additions & 1 deletion class2.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -464,6 +464,10 @@ function genericAutoload($className)
/* PHP Compatabilty should *always* be on. */
e107_require_once(e_HANDLER.'php_compatibility_handler.php');

// SITEURL constant depends on the database
// See https://github.com/e107inc/e107/issues/3033 for details.
$e107->set_urls_deferred();

//
// L: Extract core prefs from the database
//
Expand Down Expand Up @@ -2841,4 +2845,4 @@ function plugInstalled($plugname)
return isset($pref['plug_installed'][$plugname]);*/
}

$sql->db_Mark_Time('(After class2)');
$sql->db_Mark_Time('(After class2)');
Loading

0 comments on commit be062da

Please sign in to comment.