Browse Source

Use get_types or get_shortcuts depended of version of Moodle

MOODLE_20_STABLE
Vasilis Daloukas 9 years ago
parent
commit
2df0ed4ff9
  1. 2
      lib.php
  2. 2
      version.php

2
lib.php

@ -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');
}

2
version.php

@ -36,7 +36,7 @@ if (!isset( $plugin)) {
}
$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';

Loading…
Cancel
Save