diff options
author | Jehan-Guillaume (ioguix) de Rorthais | 2013-04-05 10:48:44 +0000 |
---|---|---|
committer | Jehan-Guillaume (ioguix) de Rorthais | 2013-04-05 10:48:44 +0000 |
commit | 7d89d7cca40b5a8c3ac1874436630993f518410c (patch) | |
tree | 91fb4ed815eb3c409f400b8c6226b847f7fb4b57 | |
parent | 5b5d4ab4ec12bc65f54e85a660f18361162a454c (diff) |
Instantiate plugins AFTER connecting to the db.
This allows plugins to use the connection from their constructor if the
script created it, dpeending on $_no_db_connection global variable.
This revert commit b43084e022695d6b506799a1815fb4735bd57d13. I did a few
tests, mainly on intro page, but couldn't find the bug this commit tried
to fix...
-rw-r--r-- | libraries/lib.inc.php | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/libraries/lib.inc.php b/libraries/lib.inc.php index 141aebb0..99a44f64 100644 --- a/libraries/lib.inc.php +++ b/libraries/lib.inc.php @@ -185,10 +185,6 @@ exit; } - // Manage the plugins - require_once('./classes/PluginManager.php'); - $plugin_manager = new PluginManager($_language); - // Create data accessor object, if necessary if (!isset($_no_db_connection)) { if (!isset($_REQUEST['server'])) { @@ -235,4 +231,8 @@ return strtr($string, array_flip(get_html_translation_table(HTML_SPECIALCHARS, $quote_style))); } } + + // Manage the plugins + require_once('./classes/PluginManager.php'); + $plugin_manager = new PluginManager($_language); ?> |