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.
This commit is contained in:
Thomas Gelf 2014-06-17 13:17:13 +00:00
parent 304c7d146b
commit a42b66ab14

View File

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