Skip to content

Commit

Permalink
WR408755: Minor changes for publishing
Browse files Browse the repository at this point in the history
.github/workflows/ci.yml compliance
Converted some strings to {$a} format.
  • Loading branch information
srdjan-catalyst committed Jul 27, 2023
1 parent a22c2bc commit 344fd1e
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 5 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,6 @@ on: [push, pull_request]

jobs:
ci:
# change this back to @main after testing
uses: catalyst/catalyst-moodle-workflows/.github/workflows/ci.yml@main
secrets:
moodle_org_token: ${{ secrets.MOODLE_ORG_TOKEN }}
4 changes: 2 additions & 2 deletions collector/cloudwatch/lang/en/cltr_cloudwatch.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,5 +52,5 @@

// Missing requirements.
$string['unsatisfied_requirements'] = 'Unsatisfied Requirements';
$string['aws:installneeded'] = 'Plugin \'local_aws\' of version '. \cltr_cloudwatch\lib::LOCAL_AWS_VERSION . ' is required.';
$string['aws:upgradeneeded'] = 'Plugin \'local_aws\' needs to be upgraded to version '. \cltr_cloudwatch\lib::LOCAL_AWS_VERSION . '.';
$string['aws:installneeded'] = 'Plugin \'local_aws\' of version {$a} is required.';
$string['aws:upgradeneeded'] = 'Plugin \'local_aws\' needs to be upgraded to version {$a}.';
4 changes: 2 additions & 2 deletions collector/cloudwatch/settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,13 +77,13 @@
} else {
$plugininfo = $plugins = \core_plugin_manager::instance()->get_plugin_info('local_aws');
if (is_null($plugininfo)) {
$text = $OUTPUT->notification(get_string('aws:installneeded', 'cltr_cloudwatch'));
$text = $OUTPUT->notification(get_string('aws:installneeded', 'cltr_cloudwatch', \cltr_cloudwatch\lib::LOCAL_AWS_VERSION));
$settings->add(new \admin_setting_heading('cltr_cloudwatch_aws',
get_string('unsatisfied_requirements', 'cltr_cloudwatch'),
$text
));
} else if ($plugininfo->versiondisk < \cltr_cloudwatch\lib::LOCAL_AWS_VERSION) {
$text = $OUTPUT->notification(get_string('aws:upgradeneeded', 'cltr_cloudwatch'));
$text = $OUTPUT->notification(get_string('aws:upgradeneeded', 'cltr_cloudwatch', \cltr_cloudwatch\lib::LOCAL_AWS_VERSION));
$settings->add(new \admin_setting_heading('cltr_cloudwatch_aws',
get_string('unsatisfied_requirements', 'cltr_cloudwatch'),
$text
Expand Down

0 comments on commit 344fd1e

Please sign in to comment.