Skip to content

Commit 361b410

Browse files
authored
Merge pull request #80 from DigiDago/MOODLE_401_DEV
Update for Moodle 4.1
2 parents c71b2d9 + c6f72e3 commit 361b410

6 files changed

Lines changed: 6 additions & 12 deletions

File tree

block_course_modulenavigation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -488,4 +488,4 @@ private function get_prev_next(array $array, int $current): stdClass {
488488
}
489489
return $pn;
490490
}
491-
}
491+
}

classes/privacy/provider.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,6 @@
2424

2525
namespace block_course_modulenavigation\privacy;
2626

27-
defined('MOODLE_INTERNAL') || die();
28-
2927
use core_privacy\local\metadata\null_provider;
3028

3129
/**

edit_form.php

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,6 @@
2222
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2323
*/
2424

25-
defined('MOODLE_INTERNAL') || die();
26-
2725
/**
2826
* Define the edit form for block course modulenavigation.
2927
* @package block_course_modulenavigation

lang/en/block_course_modulenavigation.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,4 +42,4 @@
4242
$string['togglecollapse_desc'] = 'Choose whether to display all tabs not collapsed';
4343
$string['toggletitles'] = 'Show only titles';
4444
$string['toggletitles_desc'] = 'Choose whether to display only titles or titles and content';
45-
$string['privacy:null_reason'] = 'The Blog Course Module Navigation block only shows data stored in other locations';
45+
$string['privacy:null_reason'] = 'The Blog Course Module Navigation block only shows data stored in other locations';

renderer.php

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,6 @@
2323
* @license http://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
2424
*/
2525

26-
defined('MOODLE_INTERNAL') || die();
27-
2826
/**
2927
* Define render navigation
3028
*
@@ -56,4 +54,4 @@ public function render_nav($template) {
5654
);
5755
}
5856
}
59-
}
57+
}

version.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@
2424
defined('MOODLE_INTERNAL') || die();
2525

2626
$plugin->component = 'block_course_modulenavigation';
27-
$plugin->release = 'v4.5.1';
28-
$plugin->version = 2021062901;
29-
$plugin->requires = 2018051700; // Moodle 3.5 and above.
27+
$plugin->release = 'v4.6';
28+
$plugin->version = 2022121300;
29+
$plugin->requires = 2022041905; // Moodle 3.5 and above.
3030
$plugin->maturity = MATURITY_STABLE;

0 commit comments

Comments
 (0)