quiz item analysis report: MDL-13427 <br> tags in the headers of some columns.
This commit is contained in:
@@ -526,6 +526,10 @@ class quiz_report extends quiz_default_report {
|
||||
get_string('facilitytitle','quiz_analysis'), get_string('stddevtitle','quiz_analysis'),
|
||||
get_string('dicsindextitle','quiz_analysis'), get_string('disccoefftitle','quiz_analysis'));
|
||||
|
||||
foreach ($headers as $key => $header) {
|
||||
$headers[$key] = preg_replace('/<br[^>]*>/', ' ', $header);
|
||||
}
|
||||
|
||||
$col = 0;
|
||||
foreach ($headers as $item) {
|
||||
$myxls->write(2,$col,$item,$formatbc);
|
||||
@@ -605,6 +609,10 @@ class quiz_report extends quiz_default_report {
|
||||
get_string('facilitytitle','quiz_analysis'), get_string('stddevtitle','quiz_analysis'),
|
||||
get_string('dicsindextitle','quiz_analysis'), get_string('disccoefftitle','quiz_analysis'));
|
||||
|
||||
foreach ($headers as $key => $header) {
|
||||
$headers[$key] = preg_replace('/<br[^>]*>/', ' ', $header);
|
||||
}
|
||||
|
||||
$col = 0;
|
||||
foreach ($headers as $item) {
|
||||
$myxls->write(2,$col,$item,$formatbc);
|
||||
@@ -639,6 +647,10 @@ class quiz_report extends quiz_default_report {
|
||||
get_string('facilitytitle','quiz_analysis'), get_string('stddevtitle','quiz_analysis'),
|
||||
get_string('dicsindextitle','quiz_analysis'), get_string('disccoefftitle','quiz_analysis'));
|
||||
|
||||
foreach ($headers as $key => $header) {
|
||||
$headers[$key] = preg_replace('/<br[^>]*>/', ' ', $header);
|
||||
}
|
||||
|
||||
$text = implode("\t", $headers)." \n";
|
||||
|
||||
$filename .= ".txt";
|
||||
|
||||
Reference in New Issue
Block a user