]> git.mjollnir.org Git - moodle.git/commitdiff
admin page cleanup (google soc 2006)... updated field name for category editing funct...
authorvinkmar <vinkmar>
Fri, 18 Aug 2006 07:29:19 +0000 (07:29 +0000)
committervinkmar <vinkmar>
Fri, 18 Aug 2006 07:29:19 +0000 (07:29 +0000)
lib/weblib.php

index 838e063ca873d577cbc70aa56fbb6d20058cd0c7..b104948c9f6a926498fcd0325b34c87a9c267e44 100644 (file)
@@ -3684,13 +3684,13 @@ function update_categories_button() {
     if (isadmin()) {
         if (!empty($USER->categoryediting)) {
             $string = get_string('turneditingoff');
-            $edit = 'off';
+            $categoryedit = 'off';
         } else {
             $string = get_string('turneditingon');
-            $edit = 'on';
+            $categoryedit = 'on';
         }
         return "<form target=\"$CFG->framename\" method=\"get\" action=\"$CFG->wwwroot/course/index.php\">".
-               '<input type="hidden" name="edit" value="'. $edit .'" />'.
+               '<input type="hidden" name="categoryedit" value="'. $categoryedit .'" />'.
                '<input type="hidden" name="sesskey" value="'.$USER->sesskey.'" />'.
                '<input type="submit" value="'. $string .'" /></form>';
     }