mirror of
https://github.com/moodle/moodle.git
synced 2025-04-24 09:55:33 +02:00
MDL-13632 Merged from 1.9
This commit is contained in:
parent
03ce38cd2b
commit
4c7fa6cecb
@ -80,7 +80,8 @@ class blog_edit_form extends moodleform {
|
||||
if ($otagsselect =& $mform->getElement('otags')) {
|
||||
$otagsselect->removeOptions();
|
||||
}
|
||||
if ($otags = get_records_sql_menu('SELECT id, name from '.$CFG->prefix.'tag WHERE tagtype=\'official\' ORDER by name ASC')){
|
||||
$namefield = empty($CFG->keeptagnamecase) ? 'name' : 'rawname';
|
||||
if ($otags = get_records_sql_menu('SELECT id, '.$namefield.' from '.$CFG->prefix.'tag WHERE tagtype=\'official\' ORDER by name ASC')){
|
||||
$otagsselect->loadArray($otags);
|
||||
}
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user