mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Merged from 1.7.
This commit is contained in:
parent
986f093fef
commit
02cb4f393d
1 changed files with 6 additions and 3 deletions
|
@ -67,10 +67,13 @@
|
|||
|
||||
echo '<div class="user-content">';
|
||||
|
||||
|
||||
if ($course->id == SITEID) {
|
||||
if (!empty($CFG->forceloginforprofiles) || isloggedin()) {
|
||||
// Search throughout the whole site.
|
||||
$searchcourse = 0;
|
||||
} else {
|
||||
$searchcourse = SITEID;
|
||||
}
|
||||
} else {
|
||||
// Search only for posts the user made in this course.
|
||||
$searchcourse = $course->id;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue