mirror of
https://github.com/pandorafms/pandorafms.git
synced 2025-07-31 01:35:36 +02:00
Moved the global var '' to upside of code
This commit is contained in:
parent
7f2098b449
commit
8390e91813
@ -95,6 +95,8 @@ function add_component_selection ($id_network_component_type) {
|
|||||||
require_once ('include/functions_network_components.php');
|
require_once ('include/functions_network_components.php');
|
||||||
enterprise_include_once('include/functions_policies.php');
|
enterprise_include_once('include/functions_policies.php');
|
||||||
|
|
||||||
|
// If code comes from policies disable export select
|
||||||
|
global $__code_from;
|
||||||
|
|
||||||
$disabledBecauseInPolicy = false;
|
$disabledBecauseInPolicy = false;
|
||||||
$disabledTextBecauseInPolicy = '';
|
$disabledTextBecauseInPolicy = '';
|
||||||
@ -368,8 +370,7 @@ $table_advanced->data[4][0] = __('Export target');
|
|||||||
// Default text message for export target select and disabled option
|
// Default text message for export target select and disabled option
|
||||||
$none_text = __('None');
|
$none_text = __('None');
|
||||||
$disabled_export = false;
|
$disabled_export = false;
|
||||||
// If code comes from policies disable export select
|
|
||||||
global $__code_from;
|
|
||||||
if ($__code_from == 'policies') {
|
if ($__code_from == 'policies') {
|
||||||
$none_text = __('Not needed');
|
$none_text = __('Not needed');
|
||||||
$disabled_export = true;
|
$disabled_export = true;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user