mirror of
https://github.com/moodle/moodle.git
synced 2025-02-13 12:34:28 +01:00
Merged from 1.7.
This commit is contained in:
parent
986f093fef
commit
02cb4f393d
@ -67,10 +67,13 @@
|
||||
|
||||
echo '<div class="user-content">';
|
||||
|
||||
|
||||
if ($course->id == SITEID) {
|
||||
// Search throughout the whole site.
|
||||
$searchcourse = 0;
|
||||
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…
x
Reference in New Issue
Block a user