Browse Source

Fix Moodle 31 compatibility

MOODLE_20_STABLE
Vasilis Daloukas 9 years ago
parent
commit
ac3a48891d
  1. 3
      CHANGES.md
  2. 3
      exportjavame.php
  3. 2
      version.php

3
CHANGES.md

@ -1,3 +1,6 @@
Changes in version 2016-06-14 (20160614)
- Fix Moodle 31 compatibility
Changes in version 2016-04-26 (20160426) Changes in version 2016-04-26 (20160426)
---------------------------------------- ----------------------------------------
- Fix Use get_types or get_shortcuts depended on version of Moodle - Fix Use get_types or get_shortcuts depended on version of Moodle

3
exportjavame.php

@ -107,8 +107,9 @@ function game_exportjavame_exportdata( $src, $destmobiledir, $destdir, $game, $m
$lang = current_language(); $lang = current_language();
} }
$sourcefile = $src. '/lang/'.$lang.'/language.txt'; $sourcefile = $src. '/lang/'.$lang.'/language.txt';
if( !file_exists( $sourcefile)) if (!file_exists( $sourcefile)) {
$sourcefile = $src. '/lang/'.$lang.'_utf8/language.txt'; $sourcefile = $src. '/lang/'.$lang.'_utf8/language.txt';
}
copy( $sourcefile, $destdir."/$destmobiledir/language.txt"); copy( $sourcefile, $destdir."/$destmobiledir/language.txt");
$exportattachment = ( $destmobiledir == 'hangmanp'); $exportattachment = ( $destmobiledir == 'hangmanp');

2
version.php

@ -36,7 +36,7 @@ if (!isset( $plugin)) {
} }
$plugin->component = 'mod_game'; // Full name of the plugin (used for diagnostics). $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->requires = 2010112400; // Requires Moodle 2.0.
$plugin->cron = 0; // Period for cron to check this module (secs). $plugin->cron = 0; // Period for cron to check this module (secs).
$plugin->release = '2016-06-14'; $plugin->release = '2016-06-14';

Loading…
Cancel
Save