mirror of
https://github.com/Mibew/mibew.git
synced 2025-03-06 03:34:09 +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');
|
require_once(MIBEW_FS_ROOT.'/libs/config.php');
|
||||||
|
|
||||||
// Include some classes
|
|
||||||
require_once(MIBEW_FS_ROOT.'/libs/classes/Mibew/PluginManager.php');
|
|
||||||
|
|
||||||
// Include common functions
|
// Include common functions
|
||||||
require_once(MIBEW_FS_ROOT.'/libs/common/constants.php');
|
require_once(MIBEW_FS_ROOT.'/libs/common/constants.php');
|
||||||
require_once(MIBEW_FS_ROOT.'/libs/common/locale.php');
|
require_once(MIBEW_FS_ROOT.'/libs/common/locale.php');
|
||||||
|
@ -29,9 +29,6 @@ session_start();
|
|||||||
|
|
||||||
require_once(MIBEW_FS_ROOT.'/libs/config.php');
|
require_once(MIBEW_FS_ROOT.'/libs/config.php');
|
||||||
|
|
||||||
// Include some classes
|
|
||||||
require_once(MIBEW_FS_ROOT.'/libs/classes/Mibew/PluginManager.php');
|
|
||||||
|
|
||||||
// Include common functions
|
// Include common functions
|
||||||
require_once(MIBEW_FS_ROOT.'/libs/common/constants.php');
|
require_once(MIBEW_FS_ROOT.'/libs/common/constants.php');
|
||||||
require_once(MIBEW_FS_ROOT.'/libs/common/locale.php');
|
require_once(MIBEW_FS_ROOT.'/libs/common/locale.php');
|
||||||
|
@ -160,6 +160,8 @@ function load_messages($locale) {
|
|||||||
|
|
||||||
$messages[$locale] = $locale_data['messages'];
|
$messages[$locale] = $locale_data['messages'];
|
||||||
|
|
||||||
|
// Plugins are unavailable on system installation
|
||||||
|
if (!installation_in_progress()) {
|
||||||
// Load active plugins localization
|
// Load active plugins localization
|
||||||
$plugins_list = array_keys(PluginManager::getAllPlugins());
|
$plugins_list = array_keys(PluginManager::getAllPlugins());
|
||||||
|
|
||||||
@ -176,6 +178,7 @@ function load_messages($locale) {
|
|||||||
);
|
);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
|
Loading…
Reference in New Issue
Block a user