MDL-32124 mod_feedback: Cleanup post-integration of unused var
authorSam Hemelryk <sam@moodle.com>
Tue, 10 Apr 2012 05:21:37 +0000 (17:21 +1200)
committerSam Hemelryk <sam@moodle.com>
Tue, 10 Apr 2012 05:21:37 +0000 (17:21 +1200)
mod/feedback/show_nonrespondents.php

index 243f006..ea14832 100644 (file)
@@ -80,15 +80,13 @@ if (($formdata = data_submitted()) AND !confirm_sesskey()) {
     print_error('invalidsesskey');
 }
 
-$strfeedbacks = get_string("modulenameplural", "feedback");
-$strfeedback  = get_string("modulename", "feedback");
-
 require_capability('mod/feedback:viewreports', $context);
 
 if ($action == 'sendmessage' AND has_capability('moodle/course:bulkmessaging', $coursecontext)) {
     $shortname = format_string($course->shortname,
                             true,
                             array('context' => get_context_instance(CONTEXT_COURSE, $course->id)));
+    $strfeedbacks = get_string("modulenameplural", "feedback");
 
     $htmlmessage = "<body id=\"email\">";