From ac3a48891d3328369aab9c8962b5236c569d002d Mon Sep 17 00:00:00 2001 From: Vasilis Daloukas Date: Tue, 14 Jun 2016 08:06:35 +0300 Subject: [PATCH] Fix Moodle 31 compatibility --- CHANGES.md | 3 +++ exportjavame.php | 5 +++-- version.php | 2 +- 3 files changed, 7 insertions(+), 3 deletions(-) diff --git a/CHANGES.md b/CHANGES.md index 244d5a0..c9b36ea 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -1,3 +1,6 @@ +Changes in version 2016-06-14 (20160614) +- Fix Moodle 31 compatibility + Changes in version 2016-04-26 (20160426) ---------------------------------------- - Fix Use get_types or get_shortcuts depended on version of Moodle diff --git a/exportjavame.php b/exportjavame.php index a66c3ed..6e19496 100644 --- a/exportjavame.php +++ b/exportjavame.php @@ -107,8 +107,9 @@ function game_exportjavame_exportdata( $src, $destmobiledir, $destdir, $game, $m $lang = current_language(); } $sourcefile = $src. '/lang/'.$lang.'/language.txt'; - if( !file_exists( $sourcefile)) - $sourcefile = $src. '/lang/'.$lang.'_utf8/language.txt'; + if (!file_exists( $sourcefile)) { + $sourcefile = $src. '/lang/'.$lang.'_utf8/language.txt'; + } copy( $sourcefile, $destdir."/$destmobiledir/language.txt"); $exportattachment = ( $destmobiledir == 'hangmanp'); diff --git a/version.php b/version.php index cd8e0b5..07d6717 100644 --- a/version.php +++ b/version.php @@ -36,7 +36,7 @@ if (!isset( $plugin)) { } $plugin->component = 'mod_game'; // Full name of the plugin (used for diagnostics). -$plugin->version = 2016061402; // The current module version (Date: YYYYMMDDXX). +$plugin->version = 2016061403; // The current module version (Date: YYYYMMDDXX). $plugin->requires = 2010112400; // Requires Moodle 2.0. $plugin->cron = 0; // Period for cron to check this module (secs). $plugin->release = '2016-06-14';