Skip to content

Commit

Permalink
WHoops, forgot a bit
Browse files Browse the repository at this point in the history
  • Loading branch information
moodler committed Feb 22, 2004
1 parent 828aeff commit d1fd642
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 1 deletion.
2 changes: 1 addition & 1 deletion admin/filters.html
Expand Up @@ -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, "", "", "");
?>
</td>
<td>
Expand Down
8 changes: 8 additions & 0 deletions admin/filters.php
Expand Up @@ -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)) {
Expand Down

0 comments on commit d1fd642

Please sign in to comment.