MDL-9742 - changed tabs to spaces in a few places where there are one

or two
This commit is contained in:
poltawski 2007-05-08 15:07:25 +00:00
parent 3ef1be377b
commit a044c05ddb
24 changed files with 85 additions and 85 deletions

View file

@ -488,7 +488,7 @@ class qformat_hotpot extends qformat_default {
return $this->hotpot_prepare_str($str);
}
function hotpot_prepare_str($str) {
// convert html entities to unicode and add slashes
// convert html entities to unicode and add slashes
$str = preg_replace('/&#[x0-9A-F]+;/ie', "html_entity_decode('\\0',ENT_NOQUOTES,'UTF-8')", $str);
return addslashes($str);
}

View file

@ -517,11 +517,11 @@ class qformat_webct extends qformat_default {
qformat_webct_convert_formula($webct_options[1]);
// Default settings:
$question->fraction[$currentchoice] = 1.0;
$question->tolerance[$currentchoice] = 0.0;
$question->tolerancetype[$currentchoice] = 2; // nominal (units in webct)
$question->feedback[$currentchoice] = '';
$question->correctanswerlength[$currentchoice] = 4;
$question->fraction[$currentchoice] = 1.0;
$question->tolerance[$currentchoice] = 0.0;
$question->tolerancetype[$currentchoice] = 2; // nominal (units in webct)
$question->feedback[$currentchoice] = '';
$question->correctanswerlength[$currentchoice] = 4;
$datasetnames = $QTYPES[CALCULATED]->find_dataset_names($webct_options[1]);
foreach ($datasetnames as $datasetname) {