Removing deprecated references and files
This commit is contained in:
@@ -38,7 +38,7 @@ class PMPlugin extends PmPluginCompatibility
|
||||
*/
|
||||
public function registerMenu($menuId, $menuFilename)
|
||||
{
|
||||
$sMenuFilename = ($this->sClassName == 'enterprisePlugin') ? PATH_CORE . 'methods' . PATH_SEP . 'enterprise' . PATH_SEP . $menuFilename : PATH_PLUGINS . $this->sPluginFolder . PATH_SEP . $menuFilename;
|
||||
$sMenuFilename = PATH_PLUGINS . $this->sPluginFolder . PATH_SEP . $menuFilename;
|
||||
PluginRegistry::loadSingleton()->registerMenu($this->sNamespace, $menuId, $sMenuFilename);
|
||||
}
|
||||
|
||||
@@ -444,19 +444,10 @@ class PMPlugin extends PmPluginCompatibility
|
||||
public static function getListPluginsManager($workspace)
|
||||
{
|
||||
$items = array();
|
||||
$aPluginsPP = array();
|
||||
if (is_file(PATH_PLUGINS . 'enterprise/data/data')) {
|
||||
$aPlugins = unserialize(trim(file_get_contents(PATH_PLUGINS . 'enterprise/data/data')));
|
||||
foreach ($aPlugins as $aPlugin) {
|
||||
$aPluginsPP[] = substr($aPlugin['sFilename'], 0, strpos($aPlugin['sFilename'], '-')) . '.php';
|
||||
}
|
||||
}
|
||||
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
if ($handle = opendir(PATH_PLUGINS)) {
|
||||
while (false !== ($file = readdir($handle))) {
|
||||
if (in_array($file, $aPluginsPP)) {
|
||||
continue;
|
||||
}
|
||||
if (strpos($file, '.php', 1) && is_file(PATH_PLUGINS . $file)) {
|
||||
include_once(PATH_PLUGINS . $file);
|
||||
/** @var \ProcessMaker\Plugins\Interfaces\PluginDetail $pluginDetail */
|
||||
|
||||
Reference in New Issue
Block a user