diff --git a/admin/user.php b/admin/user.php index cfbbe22bbbb..a7e1e6445cb 100644 --- a/admin/user.php +++ b/admin/user.php @@ -369,20 +369,15 @@ $ufiltering->display_add(); $ufiltering->display_active(); - if (has_capability('moodle/user:create', $sitecontext)) { - echo $OUTPUT->heading(''.get_string('addnewuser').''); - } if (!empty($table)) { echo html_writer::start_tag('div', array('class'=>'no-overflow')); echo html_writer::table($table); echo html_writer::end_tag('div'); echo $OUTPUT->paging_bar($usercount, $page, $perpage, $baseurl); - if (has_capability('moodle/user:create', $sitecontext)) { - echo $OUTPUT->heading(''.get_string('addnewuser').''); - } + } + if (has_capability('moodle/user:create', $sitecontext)) { + $url = new moodle_url($securewwwroot . '/user/editadvanced.php', array('id' => -1)); + echo $OUTPUT->single_button($url, get_string('addnewuser'), 'get'); } echo $OUTPUT->footer(); - - -