]> git.mjollnir.org Git - moodle.git/commitdiff
MDL-9628 Renamed edit_* to * and updated links to these files
authornicolasconnault <nicolasconnault>
Fri, 13 Jul 2007 05:54:30 +0000 (05:54 +0000)
committernicolasconnault <nicolasconnault>
Fri, 13 Jul 2007 05:54:30 +0000 (05:54 +0000)
grade/report/grader/grader_report.php
grade/report/grader/tabs.php

index 79668f8c99b5070458be3f7d30590e201ce4c4ae..04e44c79c99c2f9ab654cd164b7b1a70b3e6fedd 100644 (file)
@@ -398,8 +398,8 @@ class grade_report_grader {
                 } else { // Print confirmation dialog
                     $eid = $element['eid'];
                     $strdeletecheckfull = get_string('deletecheck', '', $element['object']->get_name());
-                    $linkyes = GRADE_EDIT_URL . "/edit_tree.php?target=$eid&amp;action=delete&amp;confirm=1$this->gtree->commonvars";
-                    $linkno = GRADE_EDIT_URL . "/edit_tree.php?$this->gtree->commonvars";
+                    $linkyes = GRADE_EDIT_URL . "/tree.php?target=$eid&amp;action=delete&amp;confirm=1$this->gtree->commonvars";
+                    $linkno = GRADE_EDIT_URL . "/tree.php?$this->gtree->commonvars";
                     notice_yesno($strdeletecheckfull, $linkyes, $linkno);
                 }
                 break;
@@ -1000,16 +1000,16 @@ class grade_report_grader {
         $edit_icon = '';
         if ($object->is_editable()) {
             if ($type == 'category') {
-                $edit_icon = '<a href="'. GRADE_EDIT_URL . '/edit_category.php?courseid='.$object->courseid.'&amp;id='.$object->id.'">'
+                $edit_icon = '<a href="'. GRADE_EDIT_URL . '/category.php?courseid='.$object->courseid.'&amp;id='.$object->id.'">'
                            . '<img src="'.$CFG->pixpath.'/t/edit.gif" class="iconsmall" alt="'
                            . $stredit.'" title="'.$stredit.'" /></a>'. "\n";
             } else if ($type == 'item' or $type == 'categoryitem' or $type == 'courseitem'){
-                $edit_icon = '<a href="'. GRADE_EDIT_URL . '/edit_item.php?courseid='.$object->courseid.'&amp;id='.$object->id.'">'
+                $edit_icon = '<a href="'. GRADE_EDIT_URL . '/item.php?courseid='.$object->courseid.'&amp;id='.$object->id.'">'
                            . '<img src="'.$CFG->pixpath.'/t/edit.gif" class="iconsmall" alt="'
                            . $stredit.'" title="'.$stredit.'" /></a>'. "\n";
             } else if ($type == 'grade' and ($object->is_editable() or empty($object->id))) {
             // TODO: change link to use itemid and userid to allow creating of new grade objects
-                $edit_icon = '<a href="'. GRADE_EDIT_URL . '/edit_grade.php?courseid='.$object->courseid.'&amp;id='.$object->id.'">'
+                $edit_icon = '<a href="'. GRADE_EDIT_URL . '/grade.php?courseid='.$object->courseid.'&amp;id='.$object->id.'">'
                                  . '<img ' . $overlib . ' src="'.$CFG->pixpath.'/t/edit.gif"'
                                  . 'class="iconsmall" alt="' . $stredit.'" title="'.$stredit.'" /></a>'. "\n";
             }
@@ -1019,7 +1019,7 @@ class grade_report_grader {
         if ($type == 'item' or $type == 'courseitem' or $type == 'categoryitem') {
             // show calculation icon only when calculation possible
             if (!$object->is_normal_item() and ($object->gradetype == GRADE_TYPE_SCALE or $object->gradetype == GRADE_TYPE_VALUE)) {
-                $edit_calculation_icon = '<a href="'. GRADE_EDIT_URL . '/edit_calculation.php?courseid='.$object->courseid.'&amp;id='.$object->id.'">'
+                $edit_calculation_icon = '<a href="'. GRADE_EDIT_URL . '/calculation.php?courseid='.$object->courseid.'&amp;id='.$object->id.'">'
                                        . '<img src="'.$CFG->pixpath.'/t/calc.gif" class="iconsmall" alt="'
                                        . $streditcalculation.'" title="'.$streditcalculation.'" /></a>'. "\n";
             }
index 71ff26bf547eb3083310c692c78de94e4d36fdda..5366c07a83ae005df7bf52f748048c6c5649500f 100644 (file)
@@ -5,7 +5,7 @@
                            get_string('graderreport', 'grades'));
 
     $row[] = new tabobject('editcategory',
-                           $CFG->wwwroot.'/grade/edit/edit_tree.php?id='.$courseid,
+                           $CFG->wwwroot.'/grade/edit/tree.php?id='.$courseid,
                            get_string('categoriesedit', 'grades'));
 
     $row[] = new tabobject('preferences',