From 2a337e593359fb03472d1a6c4155971942b307be Mon Sep 17 00:00:00 2001 From: Pim van den Berg Date: Mon, 25 May 2015 11:26:47 +0200 Subject: inc/functions: make type argument of validate_get function exactly the same as $_GET value --- inc/html.inc.php | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) (limited to 'inc/html.inc.php') diff --git a/inc/html.inc.php b/inc/html.inc.php index cf3d15d..3998f54 100644 --- a/inc/html.inc.php +++ b/inc/html.inc.php @@ -313,15 +313,15 @@ function host_summary($cat, $hosts) { function breadcrumbs() { $path = ''; - if (validate_get(GET('h'), 'host')) + if (validate_get(GET('h'), 'h')) $path .= ' - '.ucfirst(GET('h')); - if (validate_get(GET('p'), 'plugin')) + if (validate_get(GET('p'), 'p')) $path .= ' - '.ucfirst(GET('p')); - if (validate_get(GET('pi'), 'pinstance')) + if (validate_get(GET('pi'), 'pi')) $path .= ' - '.GET('pi'); - if (validate_get(GET('t'), 'type') && validate_get(GET('p'), 'plugin') && GET('t') != GET('p')) + if (validate_get(GET('t'), 't') && validate_get(GET('p'), 'p') && GET('t') != GET('p')) $path .= ' - '.GET('t'); - if (validate_get(GET('ti'), 'tinstance')) + if (validate_get(GET('ti'), 'ti')) $path .= ' - '.GET('ti'); return $path; -- cgit v1.1