diff --git a/.github/workflows/moodle-ci.yml b/.github/workflows/moodle-ci.yml index f131371..befdec4 100644 --- a/.github/workflows/moodle-ci.yml +++ b/.github/workflows/moodle-ci.yml @@ -28,6 +28,8 @@ jobs: fail-fast: false matrix: include: + - php: '8.2' + moodle-branch: 'MOODLE_404_STABLE' - php: '8.2' moodle-branch: 'MOODLE_403_STABLE' database: 'mariadb' diff --git a/CHANGES.md b/CHANGES.md index 375eb97..fd3d49a 100644 --- a/CHANGES.md +++ b/CHANGES.md @@ -5,7 +5,7 @@ * Fixed minor coding style issues. * Added monologo for Moodle 4.x. * Fixed improper use of require_login method instead of require_course_login (resolves #10). -* New feature: Display block content on course page (based on work by Harald, David und Nicklas @devcamp19 — Thanks!). +* New feature: Display block content on course page (based on work by Harald, David und Nicklas @devcamp19 — Thanks!). ### 6.0.1 ### diff --git a/lang/en/poster.php b/lang/en/poster.php index 75fd4d2..7b20901 100644 --- a/lang/en/poster.php +++ b/lang/en/poster.php @@ -25,6 +25,12 @@ defined('MOODLE_INTERNAL') || die(); +$string['display'] = 'Choose where to display the poster contents'; +$string['display_help'] = 'This module allows you to display blocks directly on the course page or in a separate page.'; +$string['displayinline'] = 'Display poster on course page'; +$string['displaypage'] = 'Display poster on separate page'; +$string['editlabelbutton'] = 'Go to view page'; +$string['editlabelmessage'] = 'These blocks should be edited on Poster view page'; $string['modulename'] = 'Poster'; $string['modulename_help'] = 'The poster module enables a teacher to make a page out of blocks (such as the HTML block, comments, calendar or RSS feed block), dragging and dropping them to the preferred location. @@ -45,9 +51,4 @@ $string['shownameview'] = 'Display name on view page'; $string['shownameview_help'] = 'If enabled, the poster name will be displayed as heading on the poster page.'; -$string['displaypage'] = 'Display poster on separate page'; -$string['displayinline'] = 'Display poster on course page'; -$string['display'] = 'Choose where to display the poster contents'; -$string['display_help'] = 'This module allows you to display blocks directly on the course page or in a separate page.'; -$string['editlabelmessage'] = 'These blocks should be edited on Poster view page'; -$string['editlabelbutton'] = 'Go to view page'; + diff --git a/tests/mod_poster_generator_test.php b/tests/mod_poster_generator_test.php index 5024427..a64a910 100644 --- a/tests/mod_poster_generator_test.php +++ b/tests/mod_poster_generator_test.php @@ -14,7 +14,6 @@ // You should have received a copy of the GNU General Public License // along with Moodle. If not, see . - /** * Poster activity testcases. * @@ -24,7 +23,6 @@ */ namespace mod_poster; - /** * Poster module generator tests. * @@ -33,13 +31,14 @@ * @copyright 2021 bdecent gmbh * @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later */ -class mod_poster_generator_test extends \advanced_testcase { +final class mod_poster_generator_test extends \advanced_testcase { /** * Test {@see mod_poster_generator::create_instance()}. * @covers ::create_instance + * @return void */ - public function test_create_instance() { + public function test_create_instance(): void { global $DB; $this->resetAfterTest(); diff --git a/version.php b/version.php index 676f4c9..261e1e3 100644 --- a/version.php +++ b/version.php @@ -28,7 +28,7 @@ $plugin->component = 'mod_poster'; $plugin->release = '7.0.0'; -$plugin->version = 2023120100; +$plugin->version = 2024081900; $plugin->requires = 2020061500; $plugin->maturity = MATURITY_STABLE; -$plugin->supported = [401, 403]; +$plugin->supported = [401, 404];