|
@ -325,11 +325,11 @@ width: 240pt; |
|
|
$question = game_show_query( $game, $q, "$i. ".$q->questiontext, $context); |
|
|
$question = game_show_query( $game, $q, "$i. ".$q->questiontext, $context); |
|
|
$question2 = strip_tags($question); // ADDED BY DP (AUG 2009) - fixes " breaking the Answer button for this question. |
|
|
$question2 = strip_tags($question); // ADDED BY DP (AUG 2009) - fixes " breaking the Answer button for this question. |
|
|
|
|
|
|
|
|
echo '<script>var msg='.json_encode( $question2).';</script>'; |
|
|
echo "<script>var msg{$q->id}=".json_encode( $question2).';</script>'; |
|
|
if (($onlyshow == false) and ($showsolution == false)) { |
|
|
if (($onlyshow == false) and ($showsolution == false)) { |
|
|
if (($game->param8 == 0) || ($game->param8 > $q->tries)) { |
|
|
if (($game->param8 == 0) || ($game->param8 > $q->tries)) { |
|
|
$question .= ' <input type="submit" value="'. |
|
|
$question .= ' <input type="submit" value="'. |
|
|
get_string( 'answer').'" onclick="OnCheck( '.$q->id.',msg);" />'; |
|
|
get_string( 'answer').'" onclick="OnCheck( '.$q->id.",msg{$q->id});\" />"; |
|
|
} |
|
|
} |
|
|
} |
|
|
} |
|
|
echo $question; |
|
|
echo $question; |
|
|