]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9172 "Turn editing off" button disappear from category page; merged from MOODLE_1...
authorskodak <skodak>
Mon, 2 Apr 2007 13:46:01 +0000 (13:46 +0000)
committerskodak <skodak>
Mon, 2 Apr 2007 13:46:01 +0000 (13:46 +0000)
course/index.php

index 8c0d5f3a77d68d69ae548201b7550bee6cfe1c64..6454afe78b83b502395108a565d595db2ee9ff82 100644 (file)
@@ -60,7 +60,7 @@
         }
 
         /// I am not sure this context in the next has_capability call is correct. 
-        if (isloggedin() and !isguest() and !has_capability('moodle/course:create', get_context_instance(CONTEXT_SYSTEM, SITEID))  and $CFG->enablecourserequests) {  // Print link to request a new course
+        if (isloggedin() and !isguest() and !has_capability('moodle/course:create', get_context_instance(CONTEXT_SYSTEM, SITEID)) and $CFG->enablecourserequests) {  // Print link to request a new course
             print_single_button('request.php', NULL, get_string('courserequest'), 'get');
         }
         if (has_capability('moodle/course:create', get_context_instance(CONTEXT_SYSTEM, SITEID))) {       // Print link to create a new course
 
     echo '</table>';
 
+    echo '<div class="buttons">';
     /// Print link to create a new course
     if (has_capability('moodle/course:create', $context)) {
         unset($options);
 
     print_single_button('pending.php',NULL, get_string('coursespending'), 'get');
 
+    // admin page does not allow custom buttons in the navigation bar
+    echo '<div class="singlebutton">';
+    echo update_categories_button();
+    echo '</div></div>';
+
     admin_externalpage_print_footer($adminroot);