mirror of
https://github.com/moodle/moodle.git
synced 2025-03-13 20:26:32 +01:00
MDL-64615 tool_mobile: Do not modify custom download URLs
This commit is contained in:
parent
a713ed3ba6
commit
c9a952776e
@ -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());
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user