From 7be6fd6684adb468f65662ccdc661854bd928c80 Mon Sep 17 00:00:00 2001 From: thepurpleblob Date: Mon, 6 Feb 2006 16:30:30 +0000 Subject: [PATCH] Added new reset button. bug #4123 --- admin/filter.php | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) 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"; ?> -
+
+ + +