]> git.mjollnir.org Git - moodle.git/commitdiff
feedback MDL-21064 Hardcoded string in /mod/feedback/index.php
authorAndrew Davis <andrew@affinitysoftware.net>
Thu, 17 Dec 2009 06:02:46 +0000 (06:02 +0000)
committerAndrew Davis <andrew@affinitysoftware.net>
Thu, 17 Dec 2009 06:02:46 +0000 (06:02 +0000)
mod/feedback/index.php

index a1b3472de9e66e89dd05779f1241cc1d44cfcdc9..0d227a32f3b83d7063a4958842033071352cf360 100644 (file)
@@ -36,7 +36,7 @@ echo $OUTPUT->header();
 /// Get all the appropriate data
 
 if (! $feedbacks = get_all_instances_in_course("feedback", $course)) {
-    notice("There are no feedbacks", htmlspecialchars('../../course/view.php?id='.$course->id));
+    notice(get_string('thereareno', 'moodle', $strfeedbacks), new moodle_url($CFG->wwwroot.'/course/view.php', array('id'=>$course->id)));
     die;
 }