Browse Source

Moodle 3.4 compatibility

MOODLE_20_STABLE
bdaloukas 8 years ago
parent
commit
e8f682adec
  1. 3
      cross/play.php
  2. 7
      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>';
} }

7
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)) {
@ -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