diff --git a/.github/workflows/moodle-ci.yml b/.github/workflows/moodle-ci.yml index 950ace2..de2c354 100644 --- a/.github/workflows/moodle-ci.yml +++ b/.github/workflows/moodle-ci.yml @@ -48,7 +48,7 @@ jobs: fail-fast: false matrix: php: ['7.4', '8.0', '8.1', '8.2'] - moodle-branch: [MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE] + moodle-branch: [MOODLE_401_STABLE, MOODLE_402_STABLE, MOODLE_403_STABLE, MOODLE_404_STABLE] database: [pgsql, mariadb] # See: https://moodledev.io/general/development/policies/php exclude: @@ -56,8 +56,12 @@ jobs: moodle-branch: MOODLE_402_STABLE - php: '7.4' moodle-branch: MOODLE_403_STABLE + - php: '7.4' + moodle-branch: MOODLE_404_STABLE - php: '8.0' moodle-branch: MOODLE_403_STABLE + - php: '8.0' + moodle-branch: MOODLE_404_STABLE - php: '8.2' moodle-branch: MOODLE_401_STABLE @@ -83,8 +87,9 @@ jobs: echo $(cd ci/bin; pwd) >> $GITHUB_PATH echo $(cd ci/vendor/bin; pwd) >> $GITHUB_PATH sudo locale-gen en_AU.UTF-8 - echo "NVM_DIR=$HOME/.nvm" >> $GITHUB_ENV - + #echo "NVM_DIR=$HOME/.nvm" >> $GITHUB_ENV + # Install nvm v0.39.7 (Temporary workaround for https://github.com/moodlehq/moodle-plugin-ci/issues/309). + curl -o- https://raw.githubusercontent.com/nvm-sh/nvm/v0.39.7/install.sh | bash - name: Install moodle-plugin-ci run: moodle-plugin-ci install --plugin ./plugin --db-host=127.0.0.1 env: diff --git a/classes/event/license_changed.php b/classes/event/license_changed.php index b01250e..4912f60 100644 --- a/classes/event/license_changed.php +++ b/classes/event/license_changed.php @@ -60,15 +60,6 @@ public static function get_name() { return get_string('eventlicensechanged', 'local_listcoursefiles'); } - /** - * Does this event replace a legacy event? - * - * @return string legacy event name - */ - public static function get_legacy_eventname() { - return null; - } - /** * Returns relevant URL. * diff --git a/lang/de/local_listcoursefiles.php b/lang/de/local_listcoursefiles.php index acdaf3e..4e93350 100644 --- a/lang/de/local_listcoursefiles.php +++ b/lang/de/local_listcoursefiles.php @@ -32,6 +32,7 @@ $string['component'] = 'Komponente'; $string['description'] = 'Diese Seite listet alle Dateien im Kurs auf. Hinweis: Nicht alle Dateien können von hier heruntergeladen werden.'; $string['eventlicensechanged'] = 'Lizenz geändert'; +$string['file_expired'] = 'Diese Datei steht aus urheberrechtlichen Gründen den Teilnehmern nicht zur Verfügung.'; $string['filename'] = 'Dateiname'; $string['filesize'] = 'Größe'; $string['filetype_all'] = 'Alle Dateitypen'; @@ -42,7 +43,6 @@ $string['filetype_image'] = 'Bild'; $string['filetype_other'] = 'Andere'; $string['filetype_video'] = 'Video'; -$string['file_expired'] = 'Diese Datei steht aus urheberrechtlichen Gründen den Teilnehmern nicht zur Verfügung.'; $string['filter_components'] = 'Nach Komponente filtern'; $string['filter_filetype'] = 'Nach Dateityp filtern'; $string['invalid_license'] = 'Ungültige Lizenz gegeben.'; @@ -54,9 +54,9 @@ $string['listcoursefiles:download'] = 'Dateien im Kurs herunterladen'; $string['listcoursefiles:view'] = 'Alle Dateien in einem Kurs einsehen'; $string['mimetype'] = 'Dateityp'; +$string['no_file_selected'] = 'Es wurde keine Datei ausgewählt.'; $string['nothingfound'] = 'Keine Dateien gefunden.'; $string['nottested'] = 'Nicht überprüft'; -$string['no_file_selected'] = 'Es wurde keine Datei ausgewählt.'; $string['pluginname'] = 'Auflistung der Kursdateien'; $string['privacy:metadata'] = 'Das Plugin Auflistung der Kursdateien zeigt nur bereits existierende Dateien an.'; $string['too_many_files'] = 'Zu viele Dateien gegeben'; diff --git a/lang/en/local_listcoursefiles.php b/lang/en/local_listcoursefiles.php index a37616e..500032f 100644 --- a/lang/en/local_listcoursefiles.php +++ b/lang/en/local_listcoursefiles.php @@ -32,6 +32,7 @@ $string['component'] = 'Component'; $string['description'] = 'This page lists all files in the course. Please note that due to technical reasons not all files can be viewed from here.'; $string['eventlicensechanged'] = 'License changed'; +$string['file_expired'] = 'This file is unavailable for students for copyright reasons.'; $string['filename'] = 'File name'; $string['filesize'] = 'File size'; $string['filetype_all'] = 'All file types'; @@ -42,7 +43,6 @@ $string['filetype_image'] = 'Image'; $string['filetype_other'] = 'Other'; $string['filetype_video'] = 'Video'; -$string['file_expired'] = 'This file is unavailable for students for copyright reasons.'; $string['filter_components'] = 'Filter component'; $string['filter_filetype'] = 'Filter file type'; $string['invalid_license'] = 'Invalid license given'; @@ -54,9 +54,9 @@ $string['listcoursefiles:download'] = 'Download files in a course'; $string['listcoursefiles:view'] = 'View all files in a course'; $string['mimetype'] = 'File type'; +$string['no_file_selected'] = 'You have not selected a file.'; $string['nothingfound'] = 'No files found'; $string['nottested'] = 'Not tested'; -$string['no_file_selected'] = 'You have not selected a file.'; $string['pluginname'] = 'List course files'; $string['privacy:metadata'] = 'The list course files plugin only displays existing files.'; $string['too_many_files'] = 'Too many files given';