Minor - format code + add translations

pull/4020/head
Julio 3 years ago
parent 54558a80cd
commit 771cd3adec
  1. 10
      public/main/mySpace/tc_report.php
  2. 3
      src/CoreBundle/DataProvider/Extension/CCalendarEventExtension.php
  3. 1
      src/CoreBundle/DataProvider/Extension/CDocumentExtension.php

@ -17,8 +17,8 @@ if (!$allowToTrack) {
}
$userInfo = [];
$action = isset($_REQUEST['a']) ? $_REQUEST['a'] : null;
$languageFilter = isset($_REQUEST['language']) ? $_REQUEST['language'] : '';
$action = $_REQUEST['a'] ?? null;
$languageFilter = $_REQUEST['language'] ?? '';
$content = '';
switch ($action) {
@ -27,7 +27,7 @@ switch ($action) {
$bossInfo = api_get_user_info($bossId);
$form = new FormValidator('add_user');
$form->addHeader(get_lang('AddUser').' '.$bossInfo['complete_name']);
$form->addHeader(get_lang('Add user').' '.$bossInfo['complete_name']);
$form->addHidden('a', 'add_user');
$form->addHidden('boss_id', $bossId);
$form->addSelectAjax(
@ -94,7 +94,7 @@ if ('add_user' !== $action) {
$form->addSelectLanguage(
'language',
get_lang('Language'),
['placeholder' => get_lang('SelectAnOption')]
['placeholder' => get_lang('Select an option')]
);
$form->addButtonSearch(get_lang('Search'));
@ -150,7 +150,7 @@ if ('add_user' !== $action) {
$url = api_get_self().'?a=add_user&boss_id='.$bossId;
$tableContent .= '<div class="add_user">';
$tableContent .= '<strong>'.get_lang('AddStudent').'</strong>';
$tableContent .= '<strong>'.get_lang('Add student').'</strong>';
$addUserForm = new FormValidator(
'add_user_to_'.$bossId,
'post',

@ -90,7 +90,8 @@ final class CCalendarEventExtension implements QueryCollectionExtensionInterface
);
$qb
->setParameter('start', $startDate)
->setParameter('end', $endDate);
->setParameter('end', $endDate)
;
}
if (empty($courseId)) {

@ -37,7 +37,6 @@ final class CDocumentExtension implements QueryCollectionExtensionInterface //,
/*public function applyToItem(QueryBuilder $queryBuilder, QueryNameGeneratorInterface $queryNameGenerator, string $resourceClass, array $identifiers, string $operationName = null, array $context = []): void
{
error_log('applyToItem');
$this->addWhere($queryBuilder, $resourceClass);
}*/

Loading…
Cancel
Save