Skip to content

Commit

Permalink
Use get_types or get_shortcuts depended of version of Moodle
Browse files Browse the repository at this point in the history
  • Loading branch information
Vasilis Daloukas committed Apr 26, 2016
1 parent 5df3dcb commit 2df0ed4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion lib.php
Original file line number Diff line number Diff line change
Expand Up @@ -865,7 +865,7 @@ function game_extend_settings_navigation($settings, $gamenode) {

/* Returns an array of game type objects to construct
menu list when adding new game */
require_once($CFG->dirroot.'/version.php');
require($CFG->dirroot.'/version.php');
if ($branch >= '31') {
define('USE_GET_SHORTCUTS', '1');
}
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 = 2016042601; // The current module version (Date: YYYYMMDDXX).
$plugin->version = 2016042602; // 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-04-26';
Expand Down

0 comments on commit 2df0ed4

Please sign in to comment.