MDL-45135 mod_glossary: fix RTL alignment of table

Tablelib has a specific 'hook' to allow alignment to be corrected for
RTL languages, but needs to be specified direction in lowercase.
This commit is contained in:
Dan Poltawski
2014-05-12 17:09:43 +08:00
parent 7a950591a9
commit c16cb40555
+3 -3
View File
@@ -57,16 +57,16 @@ $table = new html_table();
if ($usesections) {
$strsectionname = get_string('sectionname', 'format_'.$course->format);
$table->head = array ($strsectionname, $strname, $strentries);
$table->align = array ("CENTER", "LEFT", "CENTER");
$table->align = array ('center', 'left', 'center');
} else {
$table->head = array ($strname, $strentries);
$table->align = array ("LEFT", "CENTER");
$table->align = array ('left', 'center');
}
if ($show_rss = (isset($CFG->enablerssfeeds) && isset($CFG->glossary_enablerssfeeds) &&
$CFG->enablerssfeeds && $CFG->glossary_enablerssfeeds)) {
$table->head[] = $strrss;
$table->align[] = "CENTER";
$table->align[] = 'center';
}
$currentsection = "";