Browse Source

Fix compatibility problems with Moodle 2.5

MOODLE_20_STABLE
Vasilis Daloukas 9 years ago
parent
commit
f16c4f05b4
  1. 3
      CHANGES.md
  2. 4
      millionaire/play.php

3
CHANGES.md

@ -1,4 +1,7 @@
Changes in version 2016-02-14 (20160214) Changes in version 2016-02-14 (20160214)
- Fix syntax error (missed fullstop for concatenation)
- Merge pull request #10 from grigory-catalyst/MOODLE_20_STABLE
- Fix missing string gameopenclose at lang/en/game.php
- Fix compatibility with Moodle 2.5 - Fix compatibility with Moodle 2.5
Changes in version 2015-12-31 (4) (2015123104) Changes in version 2015-12-31 (4) (2015123104)

4
millionaire/play.php

@ -329,7 +329,7 @@ function game_millionaire_selectquestion( &$aanswer, $game, $attempt, &$milliona
$order = 'qs.page,qs.slot'; $order = 'qs.page,qs.slot';
} }
} else { } else {
// Source is questions. // Source is questions.
if ($game->questioncategoryid == 0) { if ($game->questioncategoryid == 0) {
print_error( get_string( 'must_select_questioncategory', 'game')); print_error( get_string( 'must_select_questioncategory', 'game'));
} }
@ -343,7 +343,7 @@ function game_millionaire_selectquestion( &$aanswer, $game, $attempt, &$milliona
} }
} }
if (game_get_moodle_version() < '02.06') { if (game_get_moodle_version() < '02.06') {
$select .= " AND qtype='multichoice' AND qmo.single=1 AND qmo.question=q.id"; $select .= " AND qtype='multichoice' AND qmo.single=1 AND qmo.question=q.id";
$table = '{question} q, {question_multichoice} qmo'; $table = '{question} q, {question_multichoice} qmo';
} else { } else {

Loading…
Cancel
Save