From b42cf867d65e35ee59f0a8988e1f383eec909f17 Mon Sep 17 00:00:00 2001 From: Frederic Massart Date: Thu, 4 Aug 2016 15:11:07 +0800 Subject: [PATCH] MDL-55377 output: Minor fixes for RTL installation Part of MDL-55071 --- install/css.php | 1 + theme/noname/layout/maintenance.php | 4 +++- 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/install/css.php b/install/css.php index 6314c221f46..ae6e96daf6f 100644 --- a/install/css.php +++ b/install/css.php @@ -103,6 +103,7 @@ fieldset { fieldset .configphp, fieldset .alert { text-align: left; + direction: ltr; } .sitelink { diff --git a/theme/noname/layout/maintenance.php b/theme/noname/layout/maintenance.php index 03cac5471e1..cbe9eac374d 100644 --- a/theme/noname/layout/maintenance.php +++ b/theme/noname/layout/maintenance.php @@ -22,7 +22,9 @@ * @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ $templatecontext = [ - 'sitename' => format_string($SITE->shortname, true, array('context' => context_course::instance(SITEID))), + // We cannot pass the context to format_string, this layout can be used during + // installation. At that stage database tables do not exist yet. + 'sitename' => format_string($SITE->shortname), 'output' => $OUTPUT ];