mirror of https://github.com/sualko/cloud_bbb
fix: change variable names
parent
75cd2475dd
commit
1c476c1f12
lib
Service
Settings
templates
|
@ -82,11 +82,7 @@ class RoomService {
|
|||
public function create(string $name, string $welcome, int $maxParticipants, bool $record, string $access, string $userId): \OCP\AppFramework\Db\Entity {
|
||||
$room = new Room();
|
||||
|
||||
if($this->config->getAppValue('bbb', 'join.defaultMedia') === 'true') {
|
||||
$media = false;
|
||||
} else {
|
||||
$media = true;
|
||||
}
|
||||
$mediaCheck = $this->config->getAppValue('bbb', 'join.mediaCheck') !== 'true';
|
||||
|
||||
$room->setUid(\OC::$server->getSecureRandom()->generate(16, \OCP\Security\ISecureRandom::CHAR_HUMAN_READABLE));
|
||||
$room->setName($name);
|
||||
|
|
|
@ -30,7 +30,7 @@ class Admin implements ISettings {
|
|||
'app.navigation' => $this->config->getAppValue('bbb', 'app.navigation') === 'true' ? 'checked' : '',
|
||||
'join.theme' => $this->config->getAppValue('bbb', 'join.theme') === 'true' ? 'checked' : '',
|
||||
'app.shortener' => $this->config->getAppValue('bbb', 'app.shortener'),
|
||||
'join.defaultMedia' => $this->config->getAppValue('bbb', 'join.defaultMedia') === 'true' ? 'checked' : '',
|
||||
'join.mediaCheck' => $this->config->getAppValue('bbb', 'join.mediaCheck') === 'true' ? 'checked' : '',
|
||||
];
|
||||
|
||||
return new TemplateResponse('bbb', 'admin', $parameters);
|
||||
|
|
|
@ -33,8 +33,8 @@ script('bbb', 'restrictions');
|
|||
<p><?php p($l->t('Below you can change some default values, which are used to create a new room.')); ?></p>
|
||||
|
||||
<p>
|
||||
<input type="checkbox" name="join.defaultMedia" id="bbb-join-defaultMedia" class="checkbox bbb-setting" value="1" <?php p($_['join.defaultMedia']); ?> />
|
||||
<label for="bbb-join-defaultMedia"><?php p($l->t('Skip media check before usage')); ?></label>
|
||||
<input type="checkbox" name="join.mediaCheck" id="bbb-join-mediaCheck" class="checkbox bbb-setting" value="1" <?php p($_['join.mediaCheck']); ?> />
|
||||
<label for="bbb-join-mediaCheck"><?php p($l->t('Skip media check before usage')); ?></label>
|
||||
</p>
|
||||
|
||||
<h3><?php p($l->t('Community')); ?></h3>
|
||||
|
|
Loading…
Reference in New Issue