1
0
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:
moodler 2008-02-25 05:32:10 +00:00
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);
}
}