Commit 7e83c6cd authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Include rtl.css when langpack defines 'thisdirection' string to be 'rtl'


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 6ac01f21
......@@ -346,6 +346,13 @@ EOF;
}
}
// Include rtl.css for right-to-left langs
if (get_string('thisdirection', 'langconfig') == 'rtl') {
if ($rtlsheets = $THEME->get_url('style/rtl.css', true)) {
$stylesheets = array_merge($stylesheets, array_reverse($rtlsheets));
}
}
$smarty->assign('STRINGJS', $stringjs);
$smarty->assign('STYLESHEETLIST', $stylesheets);
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment