Commit b2020d5a authored by Robert Lyon's avatar Robert Lyon Committed by Kristina Hoeppner

Bug 1826474: Adjusting sync_langpack.php to match new file naming

behatnotneeded

Change-Id: I014b602ee57f2e47effe518ffafc659dc453bb9e
Signed-off-by: Robert Lyon's avatarRobert Lyon <robertl@catalyst.net.nz>
parent b3121ef6
......@@ -65,11 +65,9 @@ $languages = get_languages();
$series = get_config('series');
if (preg_match('/dev$/', get_config('release'))) {
$series = 'master';
$seriesfilesuffix = $series . '.tar.gz';
}
else {
$seriesfilesuffix = $series . '_STABLE.tar.gz';
}
$seriesfilesuffix = $series . '.tar.gz';
$cli->cli_print(get_string('cli_lang_branch', 'admin', $series));
$tmpdir = get_config('dataroot') . 'temp';
......@@ -125,7 +123,7 @@ foreach ($langpacks as $lang) {
$cli->cli_print(get_string('cli_language_make_backup', 'admin', ($dobackup ? 'true' : 'false')));
// fetch the lang packs we need and save them to tmp
$langpackurl = 'http://langpacks.mahara.org/';
$langpackurl = 'https://langpacks.mahara.org/';
$filename = $lang . '-' . $seriesfilesuffix;
$langurl = $langpackurl . $filename;
$cli->cli_print(get_string('cli_langpack_url', 'admin', $langurl));
......@@ -185,4 +183,4 @@ foreach ($langpacks as $lang) {
}
$cli->cli_print('------------------------------------------');
}
$cli->cli_exit(get_string('done'));
\ No newline at end of file
$cli->cli_exit(get_string('done'));
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment