mirror of
https://github.com/moodle/moodle.git
synced 2025-08-06 17:36:38 +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
|
@ -92,7 +92,7 @@
|
|||
|
||||
// TODO: count only approved if not allowed to see them
|
||||
|
||||
$count = count_records_sql("SELECT COUNT(*) FROM {$CFG->prefix}glossary_entries where (glossaryid = $glossary->id or sourceglossaryid = $glossary->id)");
|
||||
$count = $DB->count_records_sql("SELECT COUNT(*) FROM {glossary_entries} WHERE (glossaryid = ? OR sourceglossaryid = ?)", array($glossary->id, $glossary->id));
|
||||
|
||||
//If this glossary has RSS activated, calculate it
|
||||
if ($show_rss) {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue