mirror of
https://github.com/moodle/moodle.git
synced 2025-04-05 08:23:01 +02:00
Merge branch 'MDL-78433-404' of https://github.com/aanabit/moodle into MOODLE_404_STABLE
This commit is contained in:
commit
95a5cb8038
@ -94,10 +94,8 @@ if (empty($searchcriteria)) {
|
||||
if ((can_edit_in_category() || !empty($usercatlist))) {
|
||||
$aurl = new moodle_url('/course/management.php', $searchcriteria);
|
||||
$searchform = $OUTPUT->single_button($aurl, get_string('managecourses'), 'get');
|
||||
} else {
|
||||
$searchform = $courserenderer->course_search_form($search);
|
||||
$PAGE->set_button($searchform);
|
||||
}
|
||||
$PAGE->set_button($searchform);
|
||||
|
||||
// Trigger event, courses searched.
|
||||
$eventparams = array('context' => $PAGE->context, 'other' => array('query' => $search));
|
||||
|
Loading…
x
Reference in New Issue
Block a user