change
This commit is contained in:
@@ -24,10 +24,11 @@
|
||||
|
||||
$pluginFile = $_GET['id'];
|
||||
|
||||
$oPluginRegistry = & PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry = \ProcessMaker\Plugins\PluginRegistry::loadSingleton();
|
||||
|
||||
$details = $oPluginRegistry->getPluginDetails( $pluginFile );
|
||||
$xmlform = isset( $details->sPluginFolder ) ? $details->sPluginFolder . '/' . $details->sSetupPage : '';
|
||||
$folder = $details->getFolder();
|
||||
$xmlform = isset($folder) ? $folder . '/' . $details->getSetupPage() : '';
|
||||
|
||||
$G_MAIN_MENU = 'processmaker';
|
||||
$G_ID_MENU_SELECTED = 'SETUP';
|
||||
@@ -45,7 +46,7 @@ try {
|
||||
if (! file_exists( PATH_PLUGINS . $xmlform . '.xml' ))
|
||||
throw (new Exception( 'setup .xml file is not defined for this plugin' ));
|
||||
|
||||
$Fields = $oPluginRegistry->getFieldsForPageSetup( $details->sNamespace );
|
||||
$Fields = $oPluginRegistry->getFieldsForPageSetup( $details->getNamespace() );
|
||||
$G_PUBLISH->AddContent( 'xmlform', 'xmlform', $xmlform, '', $Fields, 'pluginsSetupSave?id=' . $pluginFile );
|
||||
} catch (Exception $e) {
|
||||
$aMessage['MESSAGE'] = $e->getMessage();
|
||||
|
||||
Reference in New Issue
Block a user