Commit 8bf2d301 authored by Robert Lyon's avatar Robert Lyon
Browse files

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>
(cherry picked from commit b2020d5a)
parent 3f4e5c39
...@@ -65,11 +65,9 @@ $languages = get_languages(); ...@@ -65,11 +65,9 @@ $languages = get_languages();
$series = get_config('series'); $series = get_config('series');
if (preg_match('/dev$/', get_config('release'))) { if (preg_match('/dev$/', get_config('release'))) {
$series = 'master'; $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)); $cli->cli_print(get_string('cli_lang_branch', 'admin', $series));
$tmpdir = get_config('dataroot') . 'temp'; $tmpdir = get_config('dataroot') . 'temp';
...@@ -125,7 +123,7 @@ foreach ($langpacks as $lang) { ...@@ -125,7 +123,7 @@ foreach ($langpacks as $lang) {
$cli->cli_print(get_string('cli_language_make_backup', 'admin', ($dobackup ? 'true' : 'false'))); $cli->cli_print(get_string('cli_language_make_backup', 'admin', ($dobackup ? 'true' : 'false')));
// fetch the lang packs we need and save them to tmp // fetch the lang packs we need and save them to tmp
$langpackurl = 'http://langpacks.mahara.org/'; $langpackurl = 'https://langpacks.mahara.org/';
$filename = $lang . '-' . $seriesfilesuffix; $filename = $lang . '-' . $seriesfilesuffix;
$langurl = $langpackurl . $filename; $langurl = $langpackurl . $filename;
$cli->cli_print(get_string('cli_langpack_url', 'admin', $langurl)); $cli->cli_print(get_string('cli_langpack_url', 'admin', $langurl));
...@@ -185,4 +183,4 @@ foreach ($langpacks as $lang) { ...@@ -185,4 +183,4 @@ foreach ($langpacks as $lang) {
} }
$cli->cli_print('------------------------------------------'); $cli->cli_print('------------------------------------------');
} }
$cli->cli_exit(get_string('done')); $cli->cli_exit(get_string('done'));
\ No newline at end of file
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