Skip to content

Commit

Permalink
Poster plugin moodle 4.4 compatibility support implemented.
Browse files Browse the repository at this point in the history
  • Loading branch information
raja-lmsace committed Aug 19, 2024
1 parent 2a34456 commit d4ae654
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 13 deletions.
2 changes: 2 additions & 0 deletions .github/workflows/moodle-ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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'
Expand Down
2 changes: 1 addition & 1 deletion CHANGES.md
Original file line number Diff line number Diff line change
Expand Up @@ -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 ###

Expand Down
13 changes: 7 additions & 6 deletions lang/en/poster.php
Original file line number Diff line number Diff line change
Expand Up @@ -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.
Expand All @@ -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';

7 changes: 3 additions & 4 deletions tests/mod_poster_generator_test.php
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,6 @@
// You should have received a copy of the GNU General Public License
// along with Moodle. If not, see <https://www.gnu.org/licenses/>.


/**
* Poster activity testcases.
*
Expand All @@ -24,7 +23,6 @@
*/
namespace mod_poster;


/**
* Poster module generator tests.
*
Expand All @@ -33,13 +31,14 @@
* @copyright 2021 bdecent gmbh <https://bdecent.de>
* @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();
Expand Down
4 changes: 2 additions & 2 deletions version.php
Original file line number Diff line number Diff line change
Expand Up @@ -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];

0 comments on commit d4ae654

Please sign in to comment.