mirror of
https://github.com/moodle/moodle.git
synced 2025-03-14 12:40:01 +01:00
Slightly more helpful message if no courses can be shown.
This commit is contained in:
parent
806dab4385
commit
594bb20b95
@ -83,6 +83,7 @@
|
||||
$strdeselectall = get_string("deselectall");
|
||||
$stredit = get_string("edit");
|
||||
$strfrontpage = get_string('frontpage', 'admin');
|
||||
$strnovalidcourses = get_string('novalidcourses');
|
||||
|
||||
if (empty($search) and empty($blocklist) and empty($modulelist)) {
|
||||
print_header("$site->fullname : $strsearch", $site->fullname,
|
||||
@ -311,7 +312,12 @@
|
||||
}
|
||||
|
||||
} else {
|
||||
print_heading(get_string("nocoursesfound", "", s($search, true)));
|
||||
if (!empty($search)) {
|
||||
print_heading(get_string("nocoursesfound", "", s($search, true)));
|
||||
}
|
||||
else {
|
||||
print_heading( $strnovalidcourses );
|
||||
}
|
||||
}
|
||||
|
||||
echo "<br /><br />";
|
||||
|
@ -1019,6 +1019,7 @@ $string['notpublic'] = 'Not public!';
|
||||
$string['nousersmatching'] = 'No users matching \'$a\' were found';
|
||||
$string['nousersyet'] = 'There are no users yet';
|
||||
$string['now'] = 'now';
|
||||
$string['novalidcourses'] = 'No valid courses to be shown';
|
||||
$string['numattempts'] = '$a failed login attempt(s)';
|
||||
$string['numberweeks'] = 'Number of weeks/topics';
|
||||
$string['numdays'] = '$a days';
|
||||
|
Loading…
x
Reference in New Issue
Block a user