MDL-64615 tool_mobile: Do not modify custom download URLs

This commit is contained in:
Juan Leyva 2019-02-07 13:27:29 +01:00
parent a713ed3ba6
commit c9a952776e

View File

@ -66,6 +66,12 @@ function tool_mobile_create_app_download_url() {
}
$downloadurl = new moodle_url($mobilesettings->setuplink);
// Do not update the URL if it is a custom one (we may break it completely).
if ($mobilesettings->setuplink != 'https://download.moodle.org/mobile') {
return $downloadurl;
}
$downloadurl->param('version', $CFG->version);
$downloadurl->param('lang', current_language());