From d638075d2a0d81df5582c0357d2daacd7b52e310 Mon Sep 17 00:00:00 2001 From: nicolasconnault Date: Mon, 13 Aug 2007 18:35:28 +0000 Subject: [PATCH] Fixed a little typo --- grade/edit/tree/index.php | 26 ++++++++++++++++---------- 1 file changed, 16 insertions(+), 10 deletions(-) diff --git a/grade/edit/tree/index.php b/grade/edit/tree/index.php index 5f5c5b9fa..e0366d06e 100644 --- a/grade/edit/tree/index.php +++ b/grade/edit/tree/index.php @@ -160,9 +160,6 @@ echo ''; print_footer($course); die; - - - function print_grade_tree(&$gtree, $element, $moving, &$gpr, $switch, $switchedlast=false) { global $CFG, $COURSE; @@ -178,15 +175,19 @@ function print_grade_tree(&$gtree, $element, $moving, &$gpr, $switch, $switchedl $actions = $gtree->get_edit_icon($element, $gpr); if ($element['type'] == 'item' or ($element['type'] == 'category' and $element['depth'] > 1)) { - $actions .= ''.$strdelete.''; - $actions .= ''.$strmove.''; + $actions .= ''
+                 . $strdelete.''; + $actions .= ''
+                 . $strmove.''; } $actions .= $gtree->get_locking_icon($element, $gpr); $name = $object->get_name(); - //TODO: improve outcome visulisation + //TODO: improve outcome visualisation if ($element['type'] == 'item' and !empty($object->outcomeid)) { $name = $name.' ('.get_string('outcome', 'grades').')'; } @@ -203,13 +204,16 @@ function print_grade_tree(&$gtree, $element, $moving, &$gpr, $switch, $switchedl switch ($element['type']) { case 'item': if ($object->itemtype == 'mod') { - $icon = ''.get_string('modulename', $object->itemmodule).''; + $icon = ''
+                      . get_string('modulename', $object->itemmodule).''; } else if ($object->itemtype == 'manual') { //TODO: add manual grading icon if (empty($object->outcomeid)) { - $icon = ''.get_string('manualgrade', 'grades').''; // TODO: localize + $icon = ''
+                          . get_string('manualgrade', 'grades').''; // TODO: localize } else { - $icon = ''.get_string('outcome', 'grades').''; + $icon = ''
+                          . get_string('outcome', 'grades').''; } } @@ -228,7 +232,9 @@ function print_grade_tree(&$gtree, $element, $moving, &$gpr, $switch, $switchedl $moveto = ''; if ($moving) { $actions = ''; // no action icons when moving - $moveto = '
  • '.$strmovehere.'
  • '; + $moveto = '
  • '
+                . $strmovehere.'
  • '; } /// print the list items now -- 2.11.4.GIT