mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 00:16:46 +02:00
removed unnecessary calls to get_site()
This commit is contained in:
parent
afd97e8449
commit
222ac91bc9
26 changed files with 219 additions and 415 deletions
|
@ -68,8 +68,7 @@
|
|||
$guest = get_guest();
|
||||
$exceptions .= $guest->id;
|
||||
|
||||
$site = get_site();
|
||||
if ($course->id == $site->id) { // Show all site users (even unconfirmed)
|
||||
if ($course->id == SITEID) { // Show all site users (even unconfirmed)
|
||||
$students = get_users(true, '', true, $exceptions, $sort.' '.$dir, $firstinitial, $lastinitial, $page*$perpage, $perpage);
|
||||
$totalcount = get_users(false, '', true, '', '', '', '') - 1; // -1 to not count guest user
|
||||
if ($firstinitial or $lastinitial) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue