add use in files
This commit is contained in:
@@ -23,6 +23,9 @@
|
||||
*/
|
||||
|
||||
/*NEXT LINE: Runs any configuration defined to be executed before dependent fields recalc*/
|
||||
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
|
||||
if (isset( $_SESSION['CURRENT_PAGE_INITILIZATION'] ))
|
||||
eval( $_SESSION['CURRENT_PAGE_INITILIZATION'] );
|
||||
|
||||
@@ -44,7 +47,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 = \ProcessMaker\Plugins\PluginRegistry::loadSingleton();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
if ($oPluginRegistry->isRegisteredFolder( $aux[0] )) {
|
||||
$sPath = PATH_PLUGINS;
|
||||
}
|
||||
|
||||
@@ -24,6 +24,8 @@
|
||||
*/
|
||||
/* Includes */
|
||||
|
||||
use ProcessMaker\Plugins\PluginRegistry;
|
||||
|
||||
G::LoadAllPluginModelClasses();
|
||||
$id = get_ajax_value('ptID');
|
||||
$ntable = unserialize(base64_decode($_SESSION['pagedTable[' . $id . ']']));
|
||||
@@ -39,7 +41,7 @@ if (isset($ntable->filterForm_Id) && ($ntable->filterForm_Id!=='')) {
|
||||
$aux = explode ( PATH_SEP, G::getUIDName( $ntable->filterForm_Id ) );
|
||||
//check if G_PLUGIN_CLASS is defined, because publisher can be called without an environment
|
||||
if ( count($aux) == 2 && defined ( 'G_PLUGIN_CLASS' ) ) {
|
||||
$oPluginRegistry = \ProcessMaker\Plugins\PluginRegistry::loadSingleton();
|
||||
$oPluginRegistry = PluginRegistry::loadSingleton();
|
||||
if ( $oPluginRegistry->isRegisteredFolder($aux[0]) ) {
|
||||
$sPath = PATH_PLUGINS;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user