From: moodler Date: Sun, 22 Feb 2004 12:24:39 +0000 (+0000) Subject: WHoops, forgot a bit X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=d1fd642688a5ea634d885e0549e597270c405be8;p=moodle.git WHoops, forgot a bit --- diff --git a/admin/filters.html b/admin/filters.html index 73cb1b5d98..0ef359c188 100644 --- a/admin/filters.html +++ b/admin/filters.html @@ -106,7 +106,7 @@ $options[30] = get_string('numseconds', '', 30); $options[0] = get_string('no'); - choose_from_menu ($options, "cachetext", $config->cachetext, "", "", ""); + choose_from_menu ($options, "cachetext", $CFG->cachetext, "", "", ""); ?> diff --git a/admin/filters.php b/admin/filters.php index 1fb7676f16..41ec8a7b3f 100644 --- a/admin/filters.php +++ b/admin/filters.php @@ -78,6 +78,14 @@ /// If data submitted, then process and store. + if (!empty($options)) { + if ($config = data_submitted()) { + foreach ($config as $name => $value) { + set_config($name, $value); + } + } + } + if (!empty($add) and !empty($uselect)) { $selectedfilter = $uselect; if (!in_array($selectedfilter, $installedfilters)) {