e815a1c376
Several version checks were incorrectly using restore_controller::info::moodle_release instead of moodle_version as a version number. This replaces all of those checks with a common pair of methods to make the checks clearer and more maintainable.