Minor - format code

pull/3446/head
Julio Montoya 5 years ago
parent 2daf03204d
commit e0bc13d817
  1. 3
      main/inc/lib/certificate.lib.php
  2. 2
      main/inc/lib/course.lib.php
  3. 24
      main/inc/lib/sessionmanager.lib.php
  4. 1
      plugin/zoom/lib/ZoomPlugin.php
  5. 1
      plugin/zoom/start.php

@ -2,6 +2,7 @@
/* For licensing terms, see /license.txt */ /* For licensing terms, see /license.txt */
use Endroid\QrCode\ErrorCorrectionLevel; use Endroid\QrCode\ErrorCorrectionLevel;
use Endroid\QrCode\QrCode; use Endroid\QrCode\QrCode;
/** /**
* Certificate Class * Certificate Class
* Generate certificates based in the gradebook tool. * Generate certificates based in the gradebook tool.
@ -522,8 +523,10 @@ class Certificate extends Model
$qrCode->setBackgroundColor(['r' => 255, 'g' => 255, 'b' => 255, 'a' => 0]); $qrCode->setBackgroundColor(['r' => 255, 'g' => 255, 'b' => 255, 'a' => 0]);
$qrCode->setValidateResult(false); $qrCode->setValidateResult(false);
$qrCode->writeFile($path); $qrCode->writeFile($path);
return true; return true;
} }
return false; return false;
} }

@ -6168,7 +6168,7 @@ class CourseManager
$result[$content['value']] = $content['content']; $result[$content['value']] = $content['content'];
} }
$multiple = $form->addElement( $multiple = $form->addElement(
'advmultiselect', 'advmultiselect',
'users', 'users',
get_lang('Users'), get_lang('Users'),

@ -9537,6 +9537,18 @@ class SessionManager
return Database::num_rows($result) > 0; return Database::num_rows($result) > 0;
} }
/**
* Add a warning message when session is read-only mode.
*/
public static function addFlashSessionReadOnly()
{
if (api_get_session_id() && !api_is_allowed_to_session_edit()) {
Display::addFlash(
Display::return_message(get_lang('SessionIsReadOnly'), 'warning')
);
}
}
/** /**
* @param int $id * @param int $id
* *
@ -9674,16 +9686,4 @@ class SessionManager
return -1; return -1;
} }
} }
/**
* Add a warning message when session is read-only mode.
*/
public static function addFlashSessionReadOnly()
{
if (api_get_session_id() && !api_is_allowed_to_session_edit()) {
Display::addFlash(
Display::return_message(get_lang('SessionIsReadOnly'), 'warning')
);
}
}
} }

@ -930,7 +930,6 @@ class ZoomPlugin extends Plugin
} }
if (\Chamilo\PluginBundle\Zoom\API\Meeting::TYPE_INSTANT == $meeting->getMeetingInfoGet()->type) { if (\Chamilo\PluginBundle\Zoom\API\Meeting::TYPE_INSTANT == $meeting->getMeetingInfoGet()->type) {
return $meeting->getMeetingInfoGet()->join_url; return $meeting->getMeetingInfoGet()->join_url;
} }

@ -55,7 +55,6 @@ if ($isManager) {
$groupId = api_get_group_id(); $groupId = api_get_group_id();
$groups = GroupManager::get_groups(); $groups = GroupManager::get_groups();
if (!empty($groups)) { if (!empty($groups)) {
$form = new FormValidator('group_filter'); $form = new FormValidator('group_filter');
$groupList[0] = get_lang('Select'); $groupList[0] = get_lang('Select');
foreach ($groups as $groupData) { foreach ($groups as $groupData) {

Loading…
Cancel
Save