From c16cb405552632b8ccc82663438ecd16f4d80293 Mon Sep 17 00:00:00 2001 From: Dan Poltawski Date: Mon, 12 May 2014 17:05:51 +0800 Subject: [PATCH] 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. --- mod/glossary/index.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/mod/glossary/index.php b/mod/glossary/index.php index 1ed91a99bcb..a90e0e02cc7 100644 --- a/mod/glossary/index.php +++ b/mod/glossary/index.php @@ -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 = "";