File tree Expand file tree Collapse file tree 3 files changed +8
-17
lines changed
Expand file tree Collapse file tree 3 files changed +8
-17
lines changed Original file line number Diff line number Diff line change 293293
294294 // Show username.
295295 if ($ showusername ) {
296- $ user = isset ( $ users [$ attendee ->id ]) ? $ users [ $ attendee -> id ] : null ;
296+ $ user = $ users [$ attendee ->id ] ?? null ;
297297 $ username = $ user ? $ user ->username : '' ;
298298 $ data [] = format_string ($ username );
299299 }
Original file line number Diff line number Diff line change 115115$ string ['customfieldnewshortname ' ] = 'Custom field new shortname ' ;
116116$ string ['customfieldoriginalshortname ' ] = 'Custom field original shortname ' ;
117117$ string ['customfieldsheading ' ] = 'Custom Session Fields ' ;
118- $ string ['customtablefieldsheading ' ] = 'Custom Table Fields ' ;
119118$ string ['date ' ] = 'Date ' ;
120119$ string ['dateadd ' ] = 'Add a new date ' ;
121120$ string ['datebooked ' ] = 'Date booked ' ;
Original file line number Diff line number Diff line change 101101 0
102102));
103103
104+ $ settings ->add (new admin_setting_configcheckbox (
105+ 'facetoface/attendeesshowusernames ' ,
106+ get_string ('setting:attendeesshowusernames_caption ' , 'mod_facetoface ' ),
107+ get_string ('setting:attendeesshowusernames ' , 'mod_facetoface ' ),
108+ 0
109+ ));
110+
104111$ settings ->add (new admin_setting_heading (
105112 'facetoface/manageremail_header ' ,
106113 get_string ('manageremailheading ' , 'facetoface ' ),
177184 ]
178185));
179186
180- // Custom table fields.
181-
182- $ settings ->add (new admin_setting_heading (
183- 'facetoface_customtablefields_header ' ,
184- get_string ('customtablefieldsheading ' , 'facetoface ' ),
185- ''
186- ));
187-
188- $ settings ->add (new admin_setting_configcheckbox (
189- 'facetoface/attendeesshowusernames ' ,
190- get_string ('setting:attendeesshowusernames_caption ' , 'mod_facetoface ' ),
191- get_string ('setting:attendeesshowusernames ' , 'mod_facetoface ' ),
192- 0
193- ));
194-
195187// List of user profile fields to optionally be included in attendees export.
196188
197189$ settings ->add (new admin_setting_heading (
You can’t perform that action at this time.
0 commit comments