Fixed centralized mode message

This commit is contained in:
Daniel Maya 2019-05-14 15:16:24 +02:00
parent fd3762cabe
commit 26bc3af1d1
1 changed files with 5 additions and 2 deletions

View File

@ -1011,8 +1011,6 @@ function process_upload_xml($xml)
$centralized_management = !is_central_policies_on_node();
if ($centralized_management) {
process_upload_xml_policy($xml, $group_filter);
} else {
ui_print_error_message(__('This node is configured with centralized mode. Go to metaconsole to create a policy.'));
}
}
@ -1043,6 +1041,11 @@ function resource_registration_extension_main()
return;
}
$centralized_management = !is_central_policies_on_node();
if (!$centralized_management) {
ui_print_warning_message(__('This node is configured with centralized mode. Go to metaconsole to create a policy.'));
}
echo '<div class=notify>';
echo __('This extension makes registering resource templates easier.').' '.__('Here you can upload a resource template in .ptr format.').' '.__('Please refer to our documentation for more information on how to obtain and use %s resources.', get_product_name()).' '.'<br> <br>'.__("You can get more resurces in our <a href='http://pandorafms.com/Library/Library/'>Public Resource Library</a>");
echo '</div>';