MDL-9172 "Turn editing off" button disappear from category page

This commit is contained in:
skodak 2007-04-02 13:44:20 +00:00
parent 66c8048d55
commit e4335c36db

View file

@ -315,6 +315,7 @@
echo '</table>'; echo '</table>';
echo '<div class="buttons">';
/// Print link to create a new course /// Print link to create a new course
if (has_capability('moodle/course:create', $context)) { if (has_capability('moodle/course:create', $context)) {
unset($options); unset($options);
@ -324,6 +325,11 @@
print_single_button('pending.php',NULL, get_string('coursespending'), 'get'); 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); admin_externalpage_print_footer($adminroot);