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:
mdtrooper 2014-08-12 12:58:21 +00:00
parent e1e77b6bc1
commit 0963cda9fb
2 changed files with 14 additions and 3 deletions

View File

@ -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,

View File

@ -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;