mirror of
https://github.com/moodle/moodle.git
synced 2025-01-31 04:33:13 +01:00
user: remove deprecated sql_paging_limit(), use offset, limit parameters
This commit is contained in:
parent
ea9a729f80
commit
c4121640be
@ -425,13 +425,8 @@ function checkchecked(form) {
|
||||
$table->initialbars($totalcount > $perpage);
|
||||
$table->pagesize($perpage, $matchcount);
|
||||
|
||||
if ($table->get_page_start() !== '' && $table->get_page_size() !== '') {
|
||||
$limit = ' '.sql_paging_limit($table->get_page_start(), $table->get_page_size());
|
||||
} else {
|
||||
$limit = '';
|
||||
}
|
||||
|
||||
$students = get_records_sql($select.$from.$where.$wheresearch.$sort.$limit);
|
||||
$students = get_records_sql($select.$from.$where.$wheresearch.$sort,
|
||||
$table->get_page_start(), $table->get_page_size());
|
||||
if (!$currentrole = get_record('role','id',$roleid)) {
|
||||
error('That role does not exist');
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user