Removing deprecated references and files

This commit is contained in:
Fernando Ontiveros
2025-04-02 00:00:00 +00:00
parent 884e67f883
commit d3bd0fcfbc
117 changed files with 40 additions and 14127 deletions

View File

@@ -34,28 +34,6 @@ if ($handle = opendir(PATH_PLUGINS)) {
$pluginName = str_replace(".php", "", $pluginFile);
if (is_file(PATH_PLUGINS . $pluginName . ".php") && is_dir(PATH_PLUGINS . $pluginName)) {
if (!$oPluginRegistry->isEnterprisePlugin($pluginName)) {
//Check disabled code
$arrayFoundDisabledCode = [];
$cs = new CodeScanner(config("system.workspace"));
if (in_array('enable_plugin', $cs->getScope())) {
$arrayFoundDisabledCode = array_merge(
$cs->checkDisabledCode("FILE", PATH_PLUGINS . $pluginName . ".php"),
$cs->checkDisabledCode("PATH", PATH_PLUGINS . $pluginName)
);
}
if (!empty($arrayFoundDisabledCode)) {
$response = array();
$response["status"] = "DISABLED-CODE";
$response["message"] = G::LoadTranslation("ID_DISABLED_CODE_PLUGIN");
echo G::json_encode($response);
exit(0);
}
}
// change to ENABLED
require_once($path);
$details = $oPluginRegistry->getPluginDetails($pluginFile);