quiz item analysis report: MDL-13427 <br> tags in the headers of some columns.
This commit is contained in:
@@ -523,6 +523,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);
|
||||
@@ -578,8 +582,8 @@ 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] = eregi_replace ("<br?>", " ",$header);
|
||||
foreach ($headers as $key => $header) {
|
||||
$headers[$key] = preg_replace('/<br[^>]*>/', ' ', $header);
|
||||
}
|
||||
|
||||
$data = array();
|
||||
@@ -604,6 +608,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