2014-08-12 Miguel de Dios <miguel.dedios@artica.es>
* include/functions_modules.php: killed some unicorns and magic numbers into the function "modules_get_status". git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@10408 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
parent
e1e77b6bc1
commit
0963cda9fb
|
@ -1,3 +1,14 @@
|
|||
2014-08-12 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_modules.php: killed some unicorns and magic
|
||||
numbers into the function "modules_get_status".
|
||||
|
||||
2014-08-12 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* images/clippy_icon.png, images/pandorin.png,
|
||||
include/help/clippy/homepage.php, general/header.php: yes there is
|
||||
a octopus another time in Pandora.
|
||||
|
||||
2014-08-12 Miguel de Dios <miguel.dedios@artica.es>
|
||||
|
||||
* include/functions_clippy.php,
|
||||
|
|
|
@ -1663,15 +1663,15 @@ function modules_get_status($id_agent_module, $db_status, $data, &$status, &$tit
|
|||
$status = STATUS_AGENT_DOWN;
|
||||
$last_status = modules_get_agentmodule_last_status($id_agent_module);
|
||||
switch($last_status) {
|
||||
case 0:
|
||||
case AGENT_STATUS_NORMAL:
|
||||
$title = __('UNKNOWN') . " - " . __('Last status') .
|
||||
" " . __('NORMAL');
|
||||
break;
|
||||
case 1:
|
||||
case AGENT_STATUS_CRITICAL:
|
||||
$title = __('UNKNOWN') . " - " . __('Last status') .
|
||||
" " . __('CRITICAL');
|
||||
break;
|
||||
case 2:
|
||||
case AGENT_STATUS_WARNING:
|
||||
$title = __('UNKNOWN') . " - " . __('Last status') .
|
||||
" " . __('WARNING');
|
||||
break;
|
||||
|
|
Loading…
Reference in New Issue