From d8152d04c02b637feb0e50eb925d0f135ca924ed Mon Sep 17 00:00:00 2001 From: moodler Date: Sun, 5 Oct 2003 14:05:57 +0000 Subject: [PATCH] Language direction is now set in the language file, rather than as a site-level setting. This currently only affects Arabic but will affect Hebrew later and maybe others. --- admin/config.html | 15 --------------- lib/defaults.php | 2 +- lib/weblib.php | 2 +- 3 files changed, 2 insertions(+), 17 deletions(-) diff --git a/admin/config.html b/admin/config.html index b4ec01d17c..b8a79c71f8 100644 --- a/admin/config.html +++ b/admin/config.html @@ -10,21 +10,6 @@ - -

langdir: - - langdir, "", "", ""); - ?> - - - - -

langmenu: diff --git a/lib/defaults.php b/lib/defaults.php index 9913167344..97223907dc 100644 --- a/lib/defaults.php +++ b/lib/defaults.php @@ -14,12 +14,12 @@ "guestloginbutton" => 1, "htmleditor" => true, "lang" => "en", - "langdir" => "LTR", "langmenu" => 1, "langlist" => "", "locale" => "en", "loglifetime" => 0, "longtimenosee" => 100, + "maxbytes" => 0, "maxeditingtime" => 1800, "prefix" => "", "proxyhost" => "", diff --git a/lib/weblib.php b/lib/weblib.php index 3cfb52b528..a32d378cc6 100644 --- a/lib/weblib.php +++ b/lib/weblib.php @@ -763,7 +763,7 @@ function print_header ($title="", $heading="", $navigation="", $focus="", $meta= $meta = "\n$meta\n"; } - if (!empty($CFG->langdir) and $CFG->langdir == "RTL") { + if ( get_string("thisdirection") == "rtl" ) { $direction = " dir=\"rtl\""; } else { $direction = " dir=\"ltr\""; -- 2.39.5