Skip to content

Commit

Permalink
Fix Moodle 31 compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
bdaloukas committed Jun 14, 2016
1 parent 6036c8c commit ac3a488
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 3 deletions.
3 changes: 3 additions & 0 deletions CHANGES.md
Original file line number Diff line number Diff line change
@@ -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
Expand Down
5 changes: 3 additions & 2 deletions exportjavame.php
Original file line number Diff line number Diff line change
Expand Up @@ -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');
Expand Down
2 changes: 1 addition & 1 deletion version.php
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
}

$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';
Expand Down

0 comments on commit ac3a488

Please sign in to comment.