mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 01:16:44 +02:00
MDL-15109 glossary dml conversion
This commit is contained in:
parent
ea05eebf92
commit
ae8c356614
27 changed files with 558 additions and 628 deletions
|
@ -8,15 +8,15 @@
|
|||
$id = required_param('id', PARAM_INT);
|
||||
$sort = optional_param('sort', '', PARAM_ALPHA);
|
||||
|
||||
if (! $entry = get_record('glossary_entries', 'id', $id)) {
|
||||
if (! $entry = $DB->get_record('glossary_entries', array('id'=>$id))) {
|
||||
print_error('invalidentry');
|
||||
}
|
||||
|
||||
if (! $glossary = get_record('glossary', 'id', $entry->glossaryid)) {
|
||||
if (! $glossary = $DB->get_record('glossary', array('id'=>$entry->glossaryid))) {
|
||||
print_error('invalidid', 'glossary');
|
||||
}
|
||||
|
||||
if (! $course = get_record('course', 'id', $glossary->course)) {
|
||||
if (! $course = $DB->get_record('course', array('id'=>$glossary->course))) {
|
||||
print_error('invalidcourseid');
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue