}
// convert to comma delimited string
- $this->PreloadImageList = empty($list) ? '' : "'".implode(',', $list)."'";
+ $this->PreloadImageList = empty($list) ? '' : "'".implode("','", $list)."'";
}
return $this->PreloadImageList;
}
}
}
function v6_expand_Correct() {
- return $this->js_value('hotpot-config-file,'.$this->parent->quiztype.',guesses-correct');
+ if ($this->parent->quiztype=='jcloze') {
+ $tag = 'guesses-correct';
+ } else {
+ $tag = 'guess-correct';
+ }
+ return $this->js_value('hotpot-config-file,'.$this->parent->quiztype.','.$tag);
}
function v6_expand_Incorrect() {
- return $this->js_value('hotpot-config-file,'.$this->parent->quiztype.',guesses-incorrect');
+ if ($this->parent->quiztype=='jcloze') {
+ $tag = 'guesses-incorrect';
+ } else {
+ $tag = 'guess-incorrect';
+ }
+ return $this->js_value('hotpot-config-file,'.$this->parent->quiztype.','.$tag);
}
function v6_expand_GiveHint() {
return $this->js_value('hotpot-config-file,'.$this->parent->quiztype.',next-correct-letter');