From 493486c43f95c259687acee5d28f8da553b0338f Mon Sep 17 00:00:00 2001 From: moodler Date: Mon, 14 Jul 2003 16:22:42 +0000 Subject: [PATCH] Removed redundant up/down arrows ... let's see how everyone feels about it --- course/lib.php | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/course/lib.php b/course/lib.php index 4a99cec357..f8c02c938b 100644 --- a/course/lib.php +++ b/course/lib.php @@ -1252,12 +1252,12 @@ function make_editing_buttons($moduleid, $absolute=false, $visible=true, $movese static $str = ''; if (empty($str)) { $str->delete = get_string("delete"); + $str->move = get_string("move"); $str->moveup = get_string("moveup"); $str->movedown = get_string("movedown"); $str->update = get_string("update"); $str->hide = get_string("hide"); $str->show = get_string("show"); - $str->move = get_string("move"); } if ($absolute) { @@ -1283,14 +1283,15 @@ function make_editing_buttons($moduleid, $absolute=false, $visible=true, $movese if ($moveselect) { $move = "move\" href=\"$path/mod.php?copy=$moduleid\"> "; + } else { + $move = "moveup\" href=\"$path/mod.php?id=$moduleid&move=-1\"> ". + "movedown\" href=\"$path/mod.php?id=$moduleid&move=1\"> "; } return "delete\" href=\"$path/mod.php?delete=$moduleid\"> ". - "moveup\" href=\"$path/mod.php?id=$moduleid&move=-1\"> ". - "movedown\" href=\"$path/mod.php?id=$moduleid&move=1\"> $move". + " src=\"$pixpath/t/delete.gif\" height=11 width=11 border=0> $move". "update\" href=\"$path/mod.php?update=$moduleid\"> $hideshow"; } -- 2.39.5