2012-12-17 Miguel de Dios <miguel.dedios@artica.es>
* godmode/alerts/alert_list.php, godmode/alerts/configure_alert_template.php, godmode/alerts/alert_templates.php, godmode/alerts/alert_list.builder.php, operation/messages/message_edit.php, include/functions_api.php, operation/reporting/reporting_xml.php, godmode/reporting/graph_builder.graph_editor.php: cleaned source code style. * include/functions_io.php: improved the function "__" for to hook the translations from metaconsole. git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@7292 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
9c8d0c052e
commit
e2bb2d12de
|
@ -1,3 +1,17 @@
|
|||
2012-12-17 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* godmode/alerts/alert_list.php,
|
||||
godmode/alerts/configure_alert_template.php,
|
||||
godmode/alerts/alert_templates.php,
|
||||
godmode/alerts/alert_list.builder.php,
|
||||
operation/messages/message_edit.php, include/functions_api.php,
|
||||
operation/reporting/reporting_xml.php,
|
||||
godmode/reporting/graph_builder.graph_editor.php: cleaned source
|
||||
code style.
|
||||
|
||||
* include/functions_io.php: improved the function "__" for to hook
|
||||
the translations from metaconsole.
|
||||
|
||||
2012-12-17 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* godmode/setup/file_manager.php, include/functions_filemanager.php:
|
||||
|
|
|
@ -105,7 +105,8 @@ if ($a_template !== false) {
|
|||
}
|
||||
}
|
||||
// This prevents to duplicate the header in case duplicate/edit_template action is performed
|
||||
} else {
|
||||
}
|
||||
else {
|
||||
// Header
|
||||
if (defined('METACONSOLE')) {
|
||||
|
||||
|
@ -280,7 +281,8 @@ function update_template ($step) {
|
|||
$default_action = NULL;
|
||||
}
|
||||
|
||||
$values = array ('monday' => $monday,
|
||||
$values = array (
|
||||
'monday' => $monday,
|
||||
'tuesday' => $tuesday,
|
||||
'wednesday' => $wednesday,
|
||||
'thursday' => $thursday,
|
||||
|
@ -291,8 +293,7 @@ function update_template ($step) {
|
|||
'time_threshold' => $threshold,
|
||||
'id_alert_action' => $default_action,
|
||||
'max_alerts' => $max_alerts,
|
||||
'min_alerts' => $min_alerts
|
||||
);
|
||||
'min_alerts' => $min_alerts);
|
||||
|
||||
$fields = array();
|
||||
for($i=1;$i<=10;$i++) {
|
||||
|
|
|
@ -2681,7 +2681,7 @@ function api_set_validate_all_policy_alerts($id, $thrash1, $other, $thrash3) {
|
|||
foreach ($result_alerts as $result_alert){
|
||||
$result = alerts_validate_alert_agent_module($result_alert, true);
|
||||
|
||||
if ($result){
|
||||
if ($result) {
|
||||
$count_results++;
|
||||
}
|
||||
}
|
||||
|
|
|
@ -365,11 +365,21 @@ function __ ($string /*, variable arguments */) {
|
|||
global $l10n;
|
||||
|
||||
$extensions = extensions_get_extensions();
|
||||
if (empty($extensions)) $extensions = array();
|
||||
if (empty($extensions))
|
||||
$extensions = array();
|
||||
|
||||
global $config;
|
||||
|
||||
if ($config['enterprise_installed'] &&
|
||||
if (defined('METACONSOLE')) {
|
||||
enterprise_include_once ('meta/include/functions_meta.php');
|
||||
|
||||
$tranlateString = meta_get_defined_translation($string);
|
||||
|
||||
if ($tranlateString !== false) {
|
||||
return $tranlateString;
|
||||
}
|
||||
}
|
||||
elseif ($config['enterprise_installed'] &&
|
||||
isset($config['translate_string_extension_installed']) &&
|
||||
$config['translate_string_extension_installed'] == 1 &&
|
||||
array_key_exists('translate_string.php', $extensions)) {
|
||||
|
|
Loading…
Reference in New Issue