change
This commit is contained in:
@@ -44,7 +44,7 @@ if (! is_file( XMLFORM_AJAX_PATH . $xmlFile )) {
|
||||
$aux = explode( PATH_SEP, $xmlFile );
|
||||
//check if G_PLUGIN_CLASS is defined, because publisher can be called without an environment
|
||||
if (count( $aux ) == 2 && defined( 'G_PLUGIN_CLASS' )) {
|
||||
$oPluginRegistry = & PMPluginRegistry::getSingleton();
|
||||
$oPluginRegistry = \ProcessMaker\Plugins\PluginRegistry::loadSingleton();
|
||||
if ($oPluginRegistry->isRegisteredFolder( $aux[0] )) {
|
||||
$sPath = PATH_PLUGINS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user