File tree Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Expand file tree Collapse file tree 3 files changed +7
-5
lines changed Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ public static function get_events(): array {
47
47
global $ DB ;
48
48
49
49
// If moodleoverflow is not installed or not activated, return empty array.
50
- if (!$ DB ->get_record ('modules ' , ['name ' => 'forum ' , 'visible ' => 1 ])) {
50
+ if (!$ DB ->get_record ('modules ' , ['name ' => 'moodleoverflow ' , 'visible ' => 1 ])) {
51
51
return [];
52
52
}
53
53
@@ -66,9 +66,10 @@ public static function get_events(): array {
66
66
if ( (townsquare_filter_availability ($ event )) ||
67
67
($ event ->eventtype == 'expectcompletionon ' && townsquare_filter_activitycompletions ($ event ))) {
68
68
unset($ moodleoverflowevents [$ key ]);
69
+ continue ;
69
70
}
70
71
71
- // Add the name of the instance to events .
72
+ // Add the name of the instance to the event .
72
73
if ($ event ->eventtype != 'post ' ) {
73
74
$ event ->instancename = $ DB ->get_field ($ event ->modulename , 'name ' , ['id ' => $ event ->instance ]);
74
75
}
Original file line number Diff line number Diff line change 22
22
* @copyright 2024 Tamaro Walter
23
23
* @license https://www.gnu.org/copyleft/gpl.html GNU GPL v3 or later
24
24
*/
25
+ $ string ['pluginname ' ] = 'Townsquaresubplugin for mod_moodleoverflow ' ;
25
26
$ string ['pluginname ' ] = 'Moodleoverflow support for townsquare block ' ;
26
27
$ string ['pluginnameadding ' ] = "Adding a Moodleoverflow support subplugin " ;
27
28
$ string ['pluginnameediting ' ] = "Editing a Moodleoverflow support subplugin " ;
28
- $ string ['pluginnamesummary ' ] = "This subplugin allows the townsquare block to show new posts from moodleoverflow. " ;
29
- $ string ['pluginname_help ' ] = 'This subplugin allows the townsquare block to show posts from moodleoverflow. ' ;
29
+ $ string ['pluginnamesummary ' ] = "This subplugin allows the townsquare block to show posts and events from moodleoverflow. " ;
30
+ $ string ['pluginname_help ' ] = 'This subplugin allows the townsquare block to show posts and events from moodleoverflow. ' ;
Original file line number Diff line number Diff line change 26
26
$ plugin ->component = 'townsquareexpansion_moodleoverflow ' ;
27
27
$ plugin ->dependencies = ['local_townsquaresupport ' => ANY_VERSION ];
28
28
$ plugin ->release = '0.1.0 ' ;
29
- $ plugin ->version = 2024011503 ;
29
+ $ plugin ->version = 2024050900 ;
30
30
$ plugin ->requires = 2022041900 ;
31
31
$ plugin ->maturity = MATURITY_ALPHA ;
You can’t perform that action at this time.
0 commit comments