]> git.mjollnir.org Git - moodle.git/commitdiff
WHoops, forgot a bit
authormoodler <moodler>
Sun, 22 Feb 2004 12:24:39 +0000 (12:24 +0000)
committermoodler <moodler>
Sun, 22 Feb 2004 12:24:39 +0000 (12:24 +0000)
admin/filters.html
admin/filters.php

index 73cb1b5d98929bed0283214e940e0de26f806ede..0ef359c188289c6fdbdbe7a7ddd8d570125a8381 100644 (file)
        $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>
index 1fb7676f16f890607520d5d3e6487d592b8986b1..41ec8a7b3fcccbd7add434260646d58790f458e4 100644 (file)
 
 /// 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)) {