From f16c4f05b4457d705377890a965204cca8aad9f7 Mon Sep 17 00:00:00 2001 From: Vasilis Daloukas Date: Mon, 15 Feb 2016 05:08:23 +0200 Subject: [PATCH] Fix compatibility problems with Moodle 2.5 --- CHANGES.md | 3 +++ millionaire/play.php | 4 ++-- 2 files changed, 5 insertions(+), 2 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 00629d6..18979b8 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,4 +1,7 @@ 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 Changes in version 2015-12-31 (4) (2015123104) diff --git a/millionaire/play.php b/millionaire/play.php index 07b23b3..8dccaaa 100755 --- a/millionaire/play.php +++ b/millionaire/play.php @@ -329,7 +329,7 @@ function game_millionaire_selectquestion( &$aanswer, $game, $attempt, &$milliona $order = 'qs.page,qs.slot'; } } else { - // Source is questions. + // Source is questions. if ($game->questioncategoryid == 0) { 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"; $table = '{question} q, {question_multichoice} qmo'; } else {