$string['empty'] = 'Empty';
$string['quizopened'] = 'This quiz is open.';
$string['areyousuredeleteselected'] = 'Are you sure you want to delete the selected questions?';
-$string['questionsperpageselected'] = 'Questions per page has been set so the paging is currently fixed. As a result, the paging controls have been disabled. You can change this in ';
-$string['shufflequestionsselected'] = '* Shuffle questions has been set so question order is random. As a result, the button Reorder questions has been disabled. You can change this in ';
+$string['questionsperpageselected'] = 'Questions per page has been set so the paging is currently fixed. As a result, the paging controls have been disabled. You can change this in $a.';
+$string['shufflequestionsselected'] = '* Shuffle questions has been set so question order is random. As a result, the button Reorder questions has been disabled. You can change this in $a.';
?>
$notifystring.=notify($string,$style='notifyproblem', $align='center', $return=true);
}
if($questionsperpagebool && $quiz_reordertool){
- $string=get_string('questionsperpageselected', 'quiz');
$updateurl=new moodle_url("$CFG->wwwroot/course/mod.php",
array("return"=>"true","update"=>$quiz->cmid, "sesskey"=>sesskey()));
- $string.= '<a href="'.$updateurl->out().'">';
- $string.=get_string('updatethis', '', get_string('modulename', 'quiz'));
- $string.='</a>.';
+ $linkstring = '<a href="'.$updateurl->out().'">';
+ $linkstring.=get_string('updatethis', '', get_string('modulename', 'quiz'));
+ $linkstring.='</a>';
+ $string=get_string('questionsperpageselected', 'quiz', $linkstring);
$notifystring.=notify($string,$style='notifyproblem', $align='center', $return=true);
}
if($quiz->shufflequestions && $quiz_reordertool){
- $string=get_string('shufflequestionsselected', 'quiz');
$updateurl=new moodle_url("$CFG->wwwroot/course/mod.php",
array("return"=>"true","update"=>$quiz->cmid, "sesskey"=>sesskey()));
- $string.= '<a href="'.$updateurl->out().'">';
- $string.=get_string('updatethis', '', get_string('modulename', 'quiz'));
- $string.='</a>.';
+ $linkstring = '<a href="'.$updateurl->out().'">';
+ $linkstring.=get_string('updatethis', '', get_string('modulename', 'quiz'));
+ $linkstring.='</a>';
+ $string=get_string('shufflequestionsselected', 'quiz',$linkstring);
$notifystring.=notify($string,$style='notifyproblem', $align='center', $return=true);
}
if(!empty($notifystring)){