From: skodak Date: Wed, 1 Aug 2007 14:31:51 +0000 (+0000) Subject: fixed links broken while renaming tree.php to index.php X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=c738c61c444bd3878285377e0685002eeed8d5a8;p=moodle.git fixed links broken while renaming tree.php to index.php --- diff --git a/grade/edit/tree/index.php b/grade/edit/tree/index.php index da73d2c954..962c178039 100644 --- a/grade/edit/tree/index.php +++ b/grade/edit/tree/index.php @@ -86,7 +86,7 @@ switch ($action) { $strdeletecheckfull = get_string('deletecheck', '', $object->get_name()); $optionsyes = array('eid'=>$eid, 'confirm'=>1, 'sesskey'=>sesskey(), 'id'=>$course->id, 'action'=>'delete'); $optionsno = array('id'=>$course->id); - notice_yesno($strdeletecheckfull, 'tree.php', 'tree.php', $optionsyes, $optionsno, 'post', 'get'); + notice_yesno($strdeletecheckfull, 'index.php', 'index.php', $optionsyes, $optionsno, 'post', 'get'); print_footer($course); die; } @@ -144,7 +144,7 @@ print_box_end(); echo '
'; if ($moving) { - print_single_button('tree.php', array('id'=>$course->id), get_string('cancel'), 'get'); + print_single_button('index.php', array('id'=>$course->id), get_string('cancel'), 'get'); } else { print_single_button('category.php', array('courseid'=>$course->id), get_string('addcategory', 'grades'), 'get'); print_single_button('item.php', array('courseid'=>$course->id), get_string('additem', 'grades'), 'get'); @@ -176,8 +176,8 @@ function print_grade_tree(&$gtree, $element, $moving, &$gpr) { $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); @@ -223,7 +223,7 @@ function print_grade_tree(&$gtree, $element, $moving, &$gpr) { $moveto = ''; if ($moving) { $actions = ''; // no action icons when moving - $moveto = '
  • '.$strmovehere.'
  • '; + $moveto = '
  • '.$strmovehere.'
  • '; } /// print the list items now