From a42b66ab1475238a01ef7856645beb7daf932092 Mon Sep 17 00:00:00 2001 From: Thomas Gelf Date: Tue, 17 Jun 2014 13:17:13 +0000 Subject: [PATCH] monitoring/show/services: QUERY_STRING voodoo Looks less ugly than before, still ugly nonetheless. Will be better once we care about request routing by ourselves. --- modules/monitoring/application/controllers/ShowController.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/modules/monitoring/application/controllers/ShowController.php b/modules/monitoring/application/controllers/ShowController.php index cdd25ef07..d0bb87229 100644 --- a/modules/monitoring/application/controllers/ShowController.php +++ b/modules/monitoring/application/controllers/ShowController.php @@ -107,8 +107,8 @@ class Monitoring_ShowController extends Controller { $this->getTabs()->activate('services'); $this->_setParam('service', ''); - // WTF???? UrlViewFilter is messing with $_SERVER['QUERY_STRING'], great! - $_SERVER['QUERY_STRING'] = preg_replace('~&service=[^&]+(?:&|$)~', '', $_SERVER['QUERY_STRING']); + // TODO: This used to be a hack and still is. Modifying query string here. + $_SERVER['QUERY_STRING'] = (string) $this->params->without('service'); $this->view->services = $this->view->action('services', 'list', 'monitoring', array( 'view' => 'compact', 'limit' => '',