diff --git a/libraries/controllers/ServerVariablesController.php b/libraries/controllers/ServerVariablesController.php index 29002b7568..ef26cbd909 100644 --- a/libraries/controllers/ServerVariablesController.php +++ b/libraries/controllers/ServerVariablesController.php @@ -248,34 +248,22 @@ class ServerVariablesController extends Controller * @return string */ private function _getHtmlForServerVariables($serverVars, $serverVarsSession) { - $value = ! empty($_REQUEST['filter']) + // filter + $filterValue = ! empty($_REQUEST['filter']) ? htmlspecialchars($_REQUEST['filter']) : ''; - $output = '
' - . '' . __('Filters') . '' - . '
' - . '' - . '' - . '
' - . '
'; - - $output .= '' - . '' - . '' - . '' - . '' - . '' - . ''; + $output = Template::get('server/variables/variable_filter') + ->render(array('filterValue' => $filterValue)); + $output .= '
' . __('Action') . '' . __('Variable') . '' - . __('Session value') . ' / ' . __('Global value') - . '
'; + $output .= Template::get('server/variables/variable_table_head')->render(); $output .= ''; + $output .= $this->_getHtmlForServerVariablesItems( $serverVars, $serverVarsSession ); - $output .= ''; + $output .= ''; $output .= '
'; return $output;