mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +02:00
mod/lesson, mod/quiz: remove deprecated sql_paging_limit(), use offset, limit parameters
This commit is contained in:
parent
1ad5c6380f
commit
ea9a729f80
2 changed files with 3 additions and 4 deletions
|
@ -389,8 +389,7 @@
|
|||
|
||||
/// Get the actual records
|
||||
|
||||
$limit = sql_paging_limit($page * $nowperpage, $nowperpage);
|
||||
$records = get_records_sql($sqlselect.$limit);
|
||||
$records = get_records_sql($sqlselect, $page * $nowperpage, $nowperpage);
|
||||
|
||||
if (empty($records)) { // Nothing to show!
|
||||
if ($record) { // Something was requested so try to show that at least (bug 5132)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue