Browse Source

Moodle 3.4 compatibility

MOODLE_20_STABLE
bdaloukas 8 years ago
parent
commit
e8f682adec
  1. 3
      cross/play.php
  2. 9
      millionaire/play.php

3
cross/play.php

@ -1135,9 +1135,6 @@ function game_cross_show_welcome1() {
} }
function game_cross_show_legends( $cross) { function game_cross_show_legends( $cross) {
//echo '<td>';
ShowLegend( $cross->mlegendh, get_string( 'cross_across', 'game')); ShowLegend( $cross->mlegendh, get_string( 'cross_across', 'game'));
ShowLegend( $cross->mlegendv, get_string( 'cross_down', 'game')); ShowLegend( $cross->mlegendv, get_string( 'cross_down', 'game'));
//echo '</td>';
} }

9
millionaire/play.php

@ -21,6 +21,8 @@
* @package game * @package game
**/ **/
defined('MOODLE_INTERNAL') || die();
function game_millionaire_continue( $id, $game, $attempt, $millionaire, $context) { function game_millionaire_continue( $id, $game, $attempt, $millionaire, $context) {
// User must select quiz or question as a source module. // User must select quiz or question as a source module.
if (($game->quizid == 0) and ($game->questioncategoryid == 0)) { if (($game->quizid == 0) and ($game->questioncategoryid == 0)) {
@ -134,7 +136,7 @@ function game_millionaire_showgrid( $game, $millionaire, $id, $query, $aanswer,
$gif = "5050"; $gif = "5050";
$disabled = ""; $disabled = "";
} }
$src = game_pix_url($dirgif.$gif, 'mod_game'); $src = game_pix_url($dirgif.$gif, 'mod_game');
echo '<input type="image" '.$disabled.' name="Help5050" id="Help5050" Title="50 50" src="'.$src.'" alt="" border="0">&nbsp;'; echo '<input type="image" '.$disabled.' name="Help5050" id="Help5050" Title="50 50" src="'.$src.'" alt="" border="0">&nbsp;';
if ($state & 2) { if ($state & 2) {
@ -235,8 +237,9 @@ function game_millionaire_showgrid( $game, $millionaire, $id, $query, $aanswer,
$bfirst = true; $bfirst = true;
$letters = get_string( 'millionaire_lettersall', 'game'); $letters = get_string( 'millionaire_lettersall', 'game');
if( ($letters == '') or ($letters == '-')) if (($letters == '') or ($letters == '-')) {
$letters = get_string( 'lettersall', 'game'); $letters = get_string( 'lettersall', 'game');
}
for ($i = 1; $i <= count( $aanswer); $i++) { for ($i = 1; $i <= count( $aanswer); $i++) {
$name = "btAnswer".$i; $name = "btAnswer".$i;
$s = game_substr( $letters, $i - 1, 1); $s = game_substr( $letters, $i - 1, 1);
@ -466,7 +469,7 @@ function game_millionaire_loadquestions( $game, $millionaire, &$query, &$aanswer
} }
} }
// Flag 1:5050, 2:telephone 4:people. // Flag 1 is 5050, 2 is telephone 4 is people.
function game_millionaire_setstate( &$millionaire, $mask) { function game_millionaire_setstate( &$millionaire, $mask) {
global $DB; global $DB;

Loading…
Cancel
Save