Completed
Pull Request — v2.2-stable (#74)
by
unknown
03:53
created
mod_form.php 1 patch
Indentation   +9 added lines, -9 removed lines patch added patch discarded remove patch
@@ -216,8 +216,8 @@  discard block
 block discarded – undo
216 216
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
217 217
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6],
218 218
                 ['message' => get_string('mod_form_field_voicebridge_format_error', 'bigbluebuttonbn'),
219
-                 'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
220
-              );
219
+                    'type' => 'numeric', 'rule' => '####', 'validator' => 'server']
220
+                );
221 221
         } else {
222 222
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
223 223
                 $field['description_key'], 0, ['maxlength' => 4, 'size' => 6]);
@@ -255,7 +255,7 @@  discard block
 block discarded – undo
255 255
      */
256 256
     private function bigbluebuttonbn_mform_add_block_room_recordings(&$mform, $cfg) {
257 257
         $field = ['type' => 'hidden', 'name' => 'recordings_html', 'data_type' => PARAM_INT,
258
-                  'description_key' => null];
258
+                    'description_key' => null];
259 259
         if ($cfg['recordings_html_editable']) {
260 260
             $field['type'] = 'checkbox';
261 261
             $field['description_key'] = 'mod_form_field_recordings_html';
@@ -263,7 +263,7 @@  discard block
 block discarded – undo
263 263
         $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
264 264
             $field['description_key'], $cfg['recordings_html_default']);
265 265
         $field = ['type' => 'hidden', 'name' => 'recordings_deleted', 'data_type' => PARAM_INT,
266
-                  'description_key' => null];
266
+                    'description_key' => null];
267 267
         if ($cfg['recordings_deleted_editable']) {
268 268
             $field['type'] = 'checkbox';
269 269
             $field['description_key'] = 'mod_form_field_recordings_deleted';
@@ -271,7 +271,7 @@  discard block
 block discarded – undo
271 271
         $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
272 272
             $field['description_key'], $cfg['recordings_deleted_default']);
273 273
         $field = ['type' => 'hidden', 'name' => 'recordings_imported', 'data_type' => PARAM_INT,
274
-                  'description_key' => null];
274
+                    'description_key' => null];
275 275
         if ($cfg['importrecordings_enabled'] && $cfg['recordings_imported_editable']) {
276 276
             $field['type'] = 'checkbox';
277 277
             $field['description_key'] = 'mod_form_field_recordings_imported';
@@ -279,7 +279,7 @@  discard block
 block discarded – undo
279 279
         $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'],
280 280
             $field['description_key'], $cfg['recordings_imported_default']);
281 281
         $field = ['type' => 'hidden', 'name' => 'recordings_preview', 'data_type' => PARAM_INT,
282
-                  'description_key' => null];
282
+                    'description_key' => null];
283 283
         if ($cfg['recordings_preview_editable']) {
284 284
             $field['type'] = 'checkbox';
285 285
             $field['description_key'] = 'mod_form_field_recordings_preview';
@@ -350,7 +350,7 @@  discard block
 block discarded – undo
350 350
         $htmlselectiontype = html_writer::select($participantselection['type_options'],
351 351
             'bigbluebuttonbn_participant_selection_type', $participantselection['type_selected'], array(),
352 352
             array('id' => 'bigbluebuttonbn_participant_selection_type',
353
-                  'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;'));
353
+                    'onchange' => 'M.mod_bigbluebuttonbn.modform.participantSelectionSet(); return 0;'));
354 354
         $htmlselectionoptions = html_writer::select($participantselection['options'], 'bigbluebuttonbn_participant_selection',
355 355
             $participantselection['selected'], array(),
356 356
             array('id' => 'bigbluebuttonbn_participant_selection', 'disabled' => 'disabled'));
@@ -358,7 +358,7 @@  discard block
 block discarded – undo
358 358
             'type' => 'button', 'class' => 'btn btn-secondary',
359 359
             'value' => get_string('mod_form_field_participant_list_action_add', 'bigbluebuttonbn'),
360 360
             'onclick' => 'M.mod_bigbluebuttonbn.modform.participantAdd(); return 0;'
361
-          ));
361
+            ));
362 362
         $htmladdparticipant = html_writer::tag('div',
363 363
             $htmlselectiontype . '  ' . $htmlselectionoptions . '  ' . $htmlselectioninput, null);
364 364
         $mform->addElement('html', "\n\n");
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
                 $field['description_key'], $cfg['clienttype_default'] ,$clienttype_select_choices);
402 402
         } else {
403 403
             $this->bigbluebuttonbn_mform_add_element($mform, $field['type'], $field['name'], $field['data_type'], null,$cfg['clienttype_default']);
404
-	}
404
+    }
405 405
 
406 406
     }
407 407
 
Please login to merge, or discard this patch.
classes/locallib/config.php 1 patch
Indentation   +30 added lines, -30 removed lines patch added patch discarded remove patch
@@ -154,35 +154,35 @@
 block discarded – undo
154 154
      */
155 155
     public static function get_options() {
156 156
         return array(
157
-               'version_major' => self::get_moodle_version_major(),
158
-               'voicebridge_editable' => self::get('voicebridge_editable'),
159
-               'importrecordings_enabled' => self::get('importrecordings_enabled'),
160
-               'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'),
161
-               'waitformoderator_default' => self::get('waitformoderator_default'),
162
-               'waitformoderator_editable' => self::get('waitformoderator_editable'),
163
-               'userlimit_default' => self::get('userlimit_default'),
164
-               'userlimit_editable' => self::get('userlimit_editable'),
165
-               'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'),
166
-               'sendnotifications_enabled' => self::get('sendnotifications_enabled'),
167
-               'recordings_enabled' => self::get('recordings_enabled'),
168
-               'recordings_html_default' => self::get('recordings_html_default'),
169
-               'recordings_html_editable' => self::get('recordings_html_editable'),
170
-               'recordings_deleted_default' => self::get('recordings_deleted_default'),
171
-               'recordings_deleted_editable' => self::get('recordings_deleted_editable'),
172
-               'recordings_imported_default' => self::get('recordings_imported_default'),
173
-               'recordings_imported_editable' => self::get('recordings_imported_editable'),
174
-               'recordings_preview_default' => self::get('recordings_preview_default'),
175
-               'recordings_preview_editable' => self::get('recordings_preview_editable'),
176
-               'recording_default' => self::get('recording_default'),
177
-               'recording_editable' => self::get('recording_editable'),
178
-               'recording_icons_enabled' => self::get('recording_icons_enabled'),
179
-               'general_warning_message' => self::get('general_warning_message'),
180
-               'general_warning_box_type' => self::get('general_warning_box_type'),
181
-               'general_warning_button_text' => self::get('general_warning_button_text'),
182
-               'general_warning_button_href' => self::get('general_warning_button_href'),
183
-               'general_warning_button_class' => self::get('general_warning_button_class'),
184
-               'clienttype_editable' => self::get('clienttype_editable'),
185
-               'clienttype_default' => self::get('clienttype_default'),
186
-          );
157
+                'version_major' => self::get_moodle_version_major(),
158
+                'voicebridge_editable' => self::get('voicebridge_editable'),
159
+                'importrecordings_enabled' => self::get('importrecordings_enabled'),
160
+                'importrecordings_from_deleted_enabled' => self::get('importrecordings_from_deleted_enabled'),
161
+                'waitformoderator_default' => self::get('waitformoderator_default'),
162
+                'waitformoderator_editable' => self::get('waitformoderator_editable'),
163
+                'userlimit_default' => self::get('userlimit_default'),
164
+                'userlimit_editable' => self::get('userlimit_editable'),
165
+                'preuploadpresentation_enabled' => self::get('preuploadpresentation_enabled'),
166
+                'sendnotifications_enabled' => self::get('sendnotifications_enabled'),
167
+                'recordings_enabled' => self::get('recordings_enabled'),
168
+                'recordings_html_default' => self::get('recordings_html_default'),
169
+                'recordings_html_editable' => self::get('recordings_html_editable'),
170
+                'recordings_deleted_default' => self::get('recordings_deleted_default'),
171
+                'recordings_deleted_editable' => self::get('recordings_deleted_editable'),
172
+                'recordings_imported_default' => self::get('recordings_imported_default'),
173
+                'recordings_imported_editable' => self::get('recordings_imported_editable'),
174
+                'recordings_preview_default' => self::get('recordings_preview_default'),
175
+                'recordings_preview_editable' => self::get('recordings_preview_editable'),
176
+                'recording_default' => self::get('recording_default'),
177
+                'recording_editable' => self::get('recording_editable'),
178
+                'recording_icons_enabled' => self::get('recording_icons_enabled'),
179
+                'general_warning_message' => self::get('general_warning_message'),
180
+                'general_warning_box_type' => self::get('general_warning_box_type'),
181
+                'general_warning_button_text' => self::get('general_warning_button_text'),
182
+                'general_warning_button_href' => self::get('general_warning_button_href'),
183
+                'general_warning_button_class' => self::get('general_warning_button_class'),
184
+                'clienttype_editable' => self::get('clienttype_editable'),
185
+                'clienttype_default' => self::get('clienttype_default'),
186
+            );
187 187
     }
188 188
 }
Please login to merge, or discard this patch.
locallib.php 1 patch
Indentation   +52 added lines, -52 removed lines patch added patch discarded remove patch
@@ -89,13 +89,13 @@  discard block
 block discarded – undo
89 89
  */
90 90
 function bigbluebuttonbn_get_join_url($meetingid, $username, $pw, $logouturl, $configtoken = null, $userid = null, $clienttype=0) {
91 91
     $data = ['meetingID' => $meetingid,
92
-              'fullName' => $username,
93
-              'password' => $pw,
94
-              'logoutURL' => $logouturl,
92
+                'fullName' => $username,
93
+                'password' => $pw,
94
+                'logoutURL' => $logouturl,
95 95
             ];
96 96
     // Choose between Adobe Flash or HTML5 Client
97 97
     if ( $clienttype == 1 ) {
98
-    	$data['joinViaHtml5'] = 'true';
98
+        $data['joinViaHtml5'] = 'true';
99 99
     }
100 100
 
101 101
     if (!is_null($configtoken)) {
@@ -148,23 +148,23 @@  discard block
 block discarded – undo
148 148
 function bigbluebuttonbn_get_meeting_info_array($meetingid) {
149 149
     $xml = bigbluebuttonbn_wrap_xml_load_file(
150 150
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid])
151
-      );
151
+        );
152 152
     if ($xml && $xml->returncode == 'SUCCESS' && empty($xml->messageKey)) {
153 153
         // Meeting info was returned.
154 154
         return array('returncode' => $xml->returncode,
155
-                     'meetingID' => $xml->meetingID,
156
-                     'moderatorPW' => $xml->moderatorPW,
157
-                     'attendeePW' => $xml->attendeePW,
158
-                     'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded,
159
-                     'running' => $xml->running,
160
-                     'recording' => $xml->recording,
161
-                     'startTime' => $xml->startTime,
162
-                     'endTime' => $xml->endTime,
163
-                     'participantCount' => $xml->participantCount,
164
-                     'moderatorCount' => $xml->moderatorCount,
165
-                     'attendees' => $xml->attendees,
166
-                     'metadata' => $xml->metadata,
167
-                   );
155
+                        'meetingID' => $xml->meetingID,
156
+                        'moderatorPW' => $xml->moderatorPW,
157
+                        'attendeePW' => $xml->attendeePW,
158
+                        'hasBeenForciblyEnded' => $xml->hasBeenForciblyEnded,
159
+                        'running' => $xml->running,
160
+                        'recording' => $xml->recording,
161
+                        'startTime' => $xml->startTime,
162
+                        'endTime' => $xml->endTime,
163
+                        'participantCount' => $xml->participantCount,
164
+                        'moderatorCount' => $xml->moderatorCount,
165
+                        'attendees' => $xml->attendees,
166
+                        'metadata' => $xml->metadata,
167
+                    );
168 168
     }
169 169
     if ($xml) {
170 170
         // Either failure or success without meeting info.
@@ -300,7 +300,7 @@  discard block
 block discarded – undo
300 300
 function bigbluebuttonbn_get_default_config_xml() {
301 301
     $xml = bigbluebuttonbn_wrap_xml_load_file(
302 302
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getDefaultConfigXML')
303
-      );
303
+        );
304 304
     return $xml;
305 305
 }
306 306
 
@@ -401,7 +401,7 @@  discard block
 block discarded – undo
401 401
     foreach ($ids as $id) {
402 402
         $xml = bigbluebuttonbn_wrap_xml_load_file(
403 403
             \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('deleteRecordings', ['recordID' => $id])
404
-          );
404
+            );
405 405
         if ($xml && $xml->returncode != 'SUCCESS') {
406 406
             return false;
407 407
         }
@@ -420,7 +420,7 @@  discard block
 block discarded – undo
420 420
     foreach ($ids as $id) {
421 421
         $xml = bigbluebuttonbn_wrap_xml_load_file(
422 422
             \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('publishRecordings', ['recordID' => $id, 'publish' => $publish])
423
-          );
423
+            );
424 424
         if ($xml && $xml->returncode != 'SUCCESS') {
425 425
             return false;
426 426
         }
@@ -439,7 +439,7 @@  discard block
 block discarded – undo
439 439
     foreach ($ids as $id) {
440 440
         $xml = bigbluebuttonbn_wrap_xml_load_file(
441 441
             \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('updateRecordings', ['recordID' => $id] + (array) $params)
442
-          );
442
+            );
443 443
         if ($xml && $xml->returncode != 'SUCCESS') {
444 444
             return false;
445 445
         }
@@ -456,7 +456,7 @@  discard block
 block discarded – undo
456 456
 function bigbluebuttonbn_end_meeting($meetingid, $modpw) {
457 457
     $xml = bigbluebuttonbn_wrap_xml_load_file(
458 458
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('end', ['meetingID' => $meetingid, 'password' => $modpw])
459
-      );
459
+        );
460 460
     if ($xml) {
461 461
         // If the xml packet returned failure it displays the message to the user.
462 462
         return array('returncode' => $xml->returncode, 'message' => $xml->message, 'messageKey' => $xml->messageKey);
@@ -473,7 +473,7 @@  discard block
 block discarded – undo
473 473
 function bigbluebuttonbn_get_server_version() {
474 474
     $xml = bigbluebuttonbn_wrap_xml_load_file(
475 475
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url()
476
-      );
476
+        );
477 477
     if ($xml && $xml->returncode == 'SUCCESS') {
478 478
         return $xml->version;
479 479
     }
@@ -540,10 +540,10 @@  discard block
 block discarded – undo
540 540
         }
541 541
         $options = array();
542 542
         $options['CURLOPT_HTTPHEADER'] = array(
543
-                 'Content-Type: '.$contenttype,
544
-                 'Content-Length: '.strlen($data),
545
-                 'Content-Language: en-US',
546
-               );
543
+                    'Content-Type: '.$contenttype,
544
+                    'Content-Length: '.strlen($data),
545
+                    'Content-Language: en-US',
546
+                );
547 547
 
548 548
         return $c->post($url, $data, $options);
549 549
     }
@@ -690,16 +690,16 @@  discard block
 block discarded – undo
690 690
         'all' => array(
691 691
             'name' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'),
692 692
             'children' => []
693
-          )
694
-      );
693
+            )
694
+        );
695 695
     $data['role'] = array(
696 696
         'name' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'),
697 697
         'children' => bigbluebuttonbn_get_roles_select($context)
698
-      );
698
+        );
699 699
     $data['user'] = array(
700 700
         'name' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'),
701 701
         'children' => bigbluebuttonbn_get_users_select($context)
702
-      );
702
+        );
703 703
     return $data;
704 704
 }
705 705
 
@@ -742,7 +742,7 @@  discard block
 block discarded – undo
742 742
         'selectiontype' => 'all',
743 743
         'selectionid' => 'all',
744 744
         'role' => BIGBLUEBUTTONBN_ROLE_VIEWER
745
-      );
745
+        );
746 746
     $defaultrules = explode(',', \mod_bigbluebuttonbn\locallib\config::get('participant_moderator_default'));
747 747
     foreach ($defaultrules as $defaultrule) {
748 748
         if ($defaultrule == '0') {
@@ -755,9 +755,9 @@  discard block
 block discarded – undo
755 755
             continue;
756 756
         }
757 757
         $participantlist[] = array(
758
-              'selectiontype' => 'role',
759
-              'selectionid' => $defaultrule,
760
-              'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR);
758
+                'selectiontype' => 'role',
759
+                'selectionid' => $defaultrule,
760
+                'role' => BIGBLUEBUTTONBN_ROLE_MODERATOR);
761 761
     }
762 762
     return $participantlist;
763 763
 }
@@ -796,11 +796,11 @@  discard block
 block discarded – undo
796 796
             'all' => get_string('mod_form_field_participant_list_type_all', 'bigbluebuttonbn'),
797 797
             'role' => get_string('mod_form_field_participant_list_type_role', 'bigbluebuttonbn'),
798 798
             'user' => get_string('mod_form_field_participant_list_type_user', 'bigbluebuttonbn'),
799
-          ],
799
+            ],
800 800
         'type_selected' => 'all',
801 801
         'options' => ['all' => '---------------'],
802 802
         'selected' => 'all',
803
-      ];
803
+        ];
804 804
 }
805 805
 
806 806
 /**
@@ -1077,7 +1077,7 @@  discard block
 block discarded – undo
1077 1077
         $eventproperties['other'] = $options['other'];
1078 1078
     }
1079 1079
     $event = call_user_func_array('\mod_bigbluebuttonbn\event\bigbluebuttonbn_'.$eventtype.'::create',
1080
-      array($eventproperties));
1080
+        array($eventproperties));
1081 1081
     $event->trigger();
1082 1082
 }
1083 1083
 
@@ -1121,7 +1121,7 @@  discard block
 block discarded – undo
1121 1121
     // Ping again and refresh the cache.
1122 1122
     $meetinginfo = (array) bigbluebuttonbn_wrap_xml_load_file(
1123 1123
         \mod_bigbluebuttonbn\locallib\bigbluebutton::action_url('getMeetingInfo', ['meetingID' => $meetingid])
1124
-      );
1124
+        );
1125 1125
     $cache->set($meetingid, array('creation_time' => time(), 'meeting_info' => json_encode($meetinginfo)));
1126 1126
     return $meetinginfo;
1127 1127
 }
@@ -1533,8 +1533,8 @@  discard block
 block discarded – undo
1533 1533
     }
1534 1534
     $id = 'playbacks-'.$recording['recordID'];
1535 1535
     $recordingtypes = html_writer::start_tag('div', array('id' => $id, 'data-imported' => $dataimported,
1536
-          'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'],
1537
-          'title' => $title, $visibility => $visibility));
1536
+            'data-meetingid' => $recording['meetingID'], 'data-recordingid' => $recording['recordID'],
1537
+            'title' => $title, $visibility => $visibility));
1538 1538
     foreach ($recording['playbacks'] as $playback) {
1539 1539
         $recordingtypes .= bigbluebuttonbn_get_recording_data_row_type($recording, $bbbsession, $playback);
1540 1540
     }
@@ -1558,7 +1558,7 @@  discard block
 block discarded – undo
1558 1558
     }
1559 1559
     $text = get_string('view_recording_format_'.$playback['type'], 'bigbluebuttonbn');
1560 1560
     $href = $CFG->wwwroot . '/mod/bigbluebuttonbn/bbb_view.php?action=play&bn=' . $bbbsession['bigbluebuttonbn']->id .
1561
-      '&mid='.$recording['meetingID'] . '&rid=' . $recording['recordID'] . '&rtype=' . $playback['type'];
1561
+        '&mid='.$recording['meetingID'] . '&rid=' . $recording['recordID'] . '&rtype=' . $playback['type'];
1562 1562
     if (!isset($recording['imported']) || !isset($recording['protected']) || $recording['protected'] === 'false') {
1563 1563
         $href .= '&href='.urlencode(trim($playback['url']));
1564 1564
     }
@@ -1569,7 +1569,7 @@  discard block
 block discarded – undo
1569 1569
         'data-action' => 'play',
1570 1570
         'data-target' => $playback['type'],
1571 1571
         'data-href' => $href,
1572
-      );
1572
+        );
1573 1573
     if (!bigbluebuttonbn_is_bn_server() && !bigbluebuttonbn_is_valid_resource(trim($playback['url']))) {
1574 1574
         $linkattributes['class'] = 'btn btn-sm btn-warning';
1575 1575
         $linkattributes['title'] = get_string('view_recording_format_errror_unreachable', 'bigbluebuttonbn');
@@ -1719,10 +1719,10 @@  discard block
 block discarded – undo
1719 1719
             'id' => $id,
1720 1720
             'onclick' => $onclick,
1721 1721
             'data-action' => $data['action']
1722
-          );
1722
+            );
1723 1723
         if (!isset($recording['imported'])) {
1724 1724
             $linkattributes['data-links'] = bigbluebuttonbn_count_recording_imported_instances(
1725
-              $recording['recordID']);
1725
+                $recording['recordID']);
1726 1726
         }
1727 1727
         if (isset($data['disabled'])) {
1728 1728
             $iconattributes['class'] .= ' fa-' . $data['disabled'];
@@ -2263,8 +2263,8 @@  discard block
 block discarded – undo
2263 2263
     $activitytime = '';
2264 2264
     if ($time) {
2265 2265
         $activitytime = calendar_day_representation($time).' '.
2266
-          get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '.
2267
-          calendar_time_representation($time);
2266
+            get_string('mod_form_field_notification_msg_at', 'bigbluebuttonbn').' '.
2267
+            calendar_time_representation($time);
2268 2268
     }
2269 2269
     return $activitytime;
2270 2270
 }
@@ -2360,7 +2360,7 @@  discard block
 block discarded – undo
2360 2360
     global $BIGBLUEBUTTONBN_CFG;
2361 2361
     if (isset($BIGBLUEBUTTONBN_CFG)) {
2362 2362
         $renderer->render_warning_message('general_warning',
2363
-             get_string('config_warning_bigbluebuttonbn_cfg_deprecated', 'bigbluebuttonbn'));
2363
+                get_string('config_warning_bigbluebuttonbn_cfg_deprecated', 'bigbluebuttonbn'));
2364 2364
     }
2365 2365
 }
2366 2366
 
@@ -2568,7 +2568,7 @@  discard block
 block discarded – undo
2568 2568
         $renderer->render_group_element('participant_moderator_default',
2569 2569
             $renderer->render_group_element_configmultiselect('participant_moderator_default',
2570 2570
                 array_keys($owner), array_merge($owner, $roles))
2571
-          );
2571
+            );
2572 2572
     }
2573 2573
 }
2574 2574
 
@@ -2605,7 +2605,7 @@  discard block
 block discarded – undo
2605 2605
         // Web Client default
2606 2606
         $clienttype_default = intval((int)\mod_bigbluebuttonbn\locallib\config::get('clienttype_default'));
2607 2607
 
2608
-	// Flash or HTML5  meeting
2608
+    // Flash or HTML5  meeting
2609 2609
         $clienttype_select_choices = array(0 => get_string('mod_form_block_clienttype_flash', 'bigbluebuttonbn'), 1 => get_string('mod_form_block_clienttype_html5', 'bigbluebuttonbn'));
2610 2610
         $renderer->render_group_element('clienttype_default',
2611 2611
             $renderer->render_group_element_configselect('clienttype_default',
@@ -2697,7 +2697,7 @@  discard block
 block discarded – undo
2697 2697
         return $output;
2698 2698
     }
2699 2699
     $output .= $OUTPUT->box_start('box boxalignleft adminerror alert alert-' . $type . ' alert-block fade in',
2700
-      'bigbluebuttonbn_view_general_warning') . "\n";
2700
+        'bigbluebuttonbn_view_general_warning') . "\n";
2701 2701
     $output .= '    ' . $message . "\n";
2702 2702
     $output .= '  <div class="singlebutton pull-right">' . "\n";
2703 2703
     if (!empty($href)) {
Please login to merge, or discard this patch.
config-dist.php 1 patch
Indentation   +11 added lines, -11 removed lines patch added patch discarded remove patch
@@ -98,7 +98,7 @@  discard block
 block discarded – undo
98 98
  * recordings from a different activity even from a different course.
99 99
  **/
100 100
 
101
- /*
101
+    /*
102 102
  * When the value is set to 1 (checked) the bigbluebuttonbn rooms or
103 103
  * activities will have the 'import recordings' capability enabled.
104 104
  * $CFG->bigbluebuttonbn['importrecordings_enabled'] = 0;
@@ -119,7 +119,7 @@  discard block
 block discarded – undo
119 119
  * 'Join session' button enabled
120 120
  **/
121 121
 
122
- /*
122
+    /*
123 123
  * When the value is set to 1 (checked) the bigbluebuttonbn rooms or
124 124
  * activities will have the 'wait for moderator' capability enabled by
125 125
  * default.
@@ -259,32 +259,32 @@  discard block
 block discarded – undo
259 259
  * $CFG->bigbluebuttonbn['recordings_imported_editable'] = 1;
260 260
  */
261 261
 
262
- /*
262
+    /*
263 263
   * When the value is set to 1 (checked) the bigbluebuttonbn resources
264 264
   * will show the recodings with thumbnails.
265 265
   * $CFG->bigbluebuttonbn['recordings_preview_default'] = 1;
266 266
   */
267 267
 
268
- /*
268
+    /*
269 269
   * When the value is set to 1 (checked) the 'preview ui' capability can be
270 270
   * enabled/disabled by the user creating or editing the resource.
271 271
   * $CFG->bigbluebuttonbn['recordings_preview_editable'] = 0;
272 272
   */
273 273
 
274
- /*
274
+    /*
275 275
   * The WebClient by default is the Flash one (value = 0) or
276 276
   * the HTML5 one (value = 1)
277 277
   * $CFG->bigbluebuttonbn['clienttype_default'] = 0;
278 278
   */
279 279
 
280
- /*
280
+    /*
281 281
   * When the value is set to 1 (checked) the 'clienttype'
282 282
   * capability is enabled, meaning that the administrator can choose the default web client type
283 283
   * and if can be editable in each room through the plugin configuration
284 284
   * $CFG->bigbluebuttonbn['clienttype_enabled'] = 0;
285 285
   */
286 286
 
287
- /*
287
+    /*
288 288
   * When the value is set to 1 (checked) the WebClient can be chosen
289 289
   * the user creating or editing the resource.
290 290
   * $CFG->bigbluebuttonbn['clienttype_editable'] = 0;
@@ -330,27 +330,27 @@  discard block
 block discarded – undo
330 330
  * $CFG->bigbluebuttonbn['general_warning_message'] = "Would you like to record your BigBlueButton sessions for later viewing? ";
331 331
  */
332 332
 
333
- /*
333
+    /*
334 334
  * The warning box is always shown to administrators, but it is also possible to define other roles
335 335
  * to whom the it will be shown. The roles are based on the shortnames defined by Moodle:
336 336
  *     'manager,coursecreator,editingteacher,teacher,student,guest,user,frontpage'
337 337
  * $CFG->bigbluebuttonbn['general_warning_roles'] = 'editingteacher,teacher';
338 338
  */
339 339
 
340
- /*
340
+    /*
341 341
  * As the general_warning_message is shown in a box, its type can be defined with general_warning_type
342 342
  * The default type is 'info' which is normaly rendered in blue when using a bootstrap theme.
343 343
  * All the modifiers for boxed in bootstrap can be used [info|success|warning|danger].
344 344
  * $CFG->bigbluebuttonbn['general_warning_box_type'] = 'info';
345 345
  */
346 346
 
347
- /*
347
+    /*
348 348
  * Additionally, when general_warning_button_href value is different than "", a button
349 349
  * can also be shown right after the message.
350 350
  * $CFG->bigbluebuttonbn['general_warning_button_href'] = "http://blindsidenetworks.com/";
351 351
  */
352 352
 
353
- /*
353
+    /*
354 354
  * Finally, the text and class for the button can be modified
355 355
  * $CFG->bigbluebuttonbn['general_warning_button_text'] = "Upgrade your site";
356 356
  * $CFG->bigbluebuttonbn['general_warning_button_class'] = "btn btn-primary";
Please login to merge, or discard this patch.