mirror of
https://github.com/Mibew/mibew.git
synced 2025-05-30 14:22:33 +03:00
Do not use plugins at system installation
This commit is contained in:
parent
a033d72f20
commit
bd5d6a277d
@ -29,9 +29,6 @@ session_start();
|
||||
|
||||
require_once(MIBEW_FS_ROOT.'/libs/config.php');
|
||||
|
||||
// Include some classes
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/Mibew/PluginManager.php');
|
||||
|
||||
// Include common functions
|
||||
require_once(MIBEW_FS_ROOT.'/libs/common/constants.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/common/locale.php');
|
||||
|
@ -29,9 +29,6 @@ session_start();
|
||||
|
||||
require_once(MIBEW_FS_ROOT.'/libs/config.php');
|
||||
|
||||
// Include some classes
|
||||
require_once(MIBEW_FS_ROOT.'/libs/classes/Mibew/PluginManager.php');
|
||||
|
||||
// Include common functions
|
||||
require_once(MIBEW_FS_ROOT.'/libs/common/constants.php');
|
||||
require_once(MIBEW_FS_ROOT.'/libs/common/locale.php');
|
||||
|
@ -160,6 +160,8 @@ function load_messages($locale) {
|
||||
|
||||
$messages[$locale] = $locale_data['messages'];
|
||||
|
||||
// Plugins are unavailable on system installation
|
||||
if (!installation_in_progress()) {
|
||||
// Load active plugins localization
|
||||
$plugins_list = array_keys(PluginManager::getAllPlugins());
|
||||
|
||||
@ -177,6 +179,7 @@ function load_messages($locale) {
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
/**
|
||||
* Read and parse locale file.
|
||||
|
Loading…
Reference in New Issue
Block a user