]> git.mjollnir.org Git - moodle.git/commitdiff
course/index: Bring back Petr's MDL-9647 simplify dealing with headers/footers in...
authormartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:48:56 +0000 (07:48 +0000)
committermartinlanghoff <martinlanghoff>
Wed, 19 Sep 2007 07:48:56 +0000 (07:48 +0000)
I had mistakenly reverted some of Petr's changes.

Fixes MDL-11179 19PERF: Notice on /course/index.php as admin

course/index.php

index 7c37b647f3eb8974570cb704ab817f434fafc132..2d25f75fdca82059a738376c6685231b97230fb2 100644 (file)
                              "index.php?delete=$delete&amp;sure=".md5($deletecat->timemodified)."&amp;sesskey=$USER->sesskey",
                              "index.php?sesskey=$USER->sesskey");
 
-                if (has_capability('moodle/site:config', $sysctx)) {
-                    admin_externalpage_print_footer($adminroot);
-                } else {
-                    print_footer();  
-                }
+                print_footer();  
                 exit();
             }
         }
     echo update_categories_button();
     echo '</div></div>';
 
-    if (has_capability('moodle/site:config', $sysctx)) {
-        admin_externalpage_print_footer($adminroot);
-    } else {
-        print_footer();
-    }
+    print_footer();
 
 function print_category_edit($category, $displaylist, $parentslist, $depth=-1, $up=false, $down=false) {
 /// Recursive function to print all the categories ready for editing