diff --git a/admin/filter.php b/admin/filter.php index 85c20a75060..a69fe2c4deb 100644 --- a/admin/filter.php +++ b/admin/filter.php @@ -15,8 +15,10 @@ } // get parameters - $params = new Object; + $param = new Object; $param->filter = required_param( 'filter' ); + $param->submit = optional_param( 'submit','',PARAM_ALPHA ); + $param->reset = optional_param( 'reset','',PARAM_ALPHA ); $filtername = substr( $param->filter, strpos( $param->filter, '/' )+1 ) ; // get translated strings for use on page @@ -25,11 +27,16 @@ $txt->administration = get_string( 'administration' ); $txt->configuration = get_string( 'configuration' ); - //====================== // Process Actions //====================== + // if reset pressed let filter config page handle it + $forcereset = false; + if (!empty($param->reset)) { + $forcereset = true; + } + else if ($config = data_submitted()) { // check session key @@ -80,7 +87,10 @@ dirroot/$param->filter/filterconfig.html"; ?> -