MDL-13632 Make sure official tags are in the right case.

This commit is contained in:
moodler
2008-02-25 05:30:44 +00:00
parent 6652a915eb
commit 4d6eee8d65
+2 -1
View File
@@ -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);
}
}