From 932be04628a14c014c944f981f90a1758fd15fe2 Mon Sep 17 00:00:00 2001 From: moodler Date: Thu, 9 Aug 2007 07:50:21 +0000 Subject: [PATCH] Patch for left-right buttons in course view MDL-10768 --- course/lib.php | 15 ++++++++++++--- 1 file changed, 12 insertions(+), 3 deletions(-) diff --git a/course/lib.php b/course/lib.php index 48ec9e4a29..da854df39f 100644 --- a/course/lib.php +++ b/course/lib.php @@ -2319,18 +2319,27 @@ function make_editing_buttons($mod, $absolute=false, $moveselect=true, $indent=- $move = ''; } - $leftright = ""; + $leftright = ''; if (has_capability('moodle/course:update', get_context_instance(CONTEXT_COURSE, $mod->course))) { + + if (get_string('thisdirection') == 'rtl') { // Exchange arrows on RTL + $rightarrow = 'left.gif'; + $leftarrow = 'right.gif'; + } else { + $rightarrow = 'right.gif'; + $leftarrow = 'left.gif'; + } + if ($indent > 0) { $leftright .= ''."\n"; } if ($indent >= 0) { $leftright .= ''."\n"; } } -- 2.39.5