Minor - flint fixes

pull/2629/head
Julio Montoya 8 years ago
parent 006cf00b7d
commit 2babdcc28a
  1. 9
      main/inc/ajax/admin.ajax.php
  2. 2
      main/inc/lib/CourseChatUtils.php
  3. 3
      main/inc/lib/internationalization.lib.php
  4. 3
      src/Chamilo/CoreBundle/Entity/Repository/BranchSyncRepository.php
  5. 1
      src/Chamilo/UserBundle/Repository/UserRepository.php

@ -1,9 +1,8 @@
<?php
/* For licensing terms, see /license.txt */
use \Chamilo\CoreBundle\Entity\Repository\BranchSyncRepository;
use \Chamilo\CoreBundle\Entity\BranchSync;
use \Doctrine\Common\Collections\Criteria;
use Chamilo\CoreBundle\Entity\BranchSync;
use Chamilo\CoreBundle\Entity\Repository\BranchSyncRepository;
/**
* Responses to AJAX calls.
@ -113,9 +112,11 @@ function version_check()
/**
* Check if the current installation is up to date
* The code is borrowed from phpBB and slighlty modified.
* @return string language string with some layout (color)
*
* @throws \Exception
* @throws \InvalidArgumentException
*
* @return string language string with some layout (color)
*/
function check_system_version()
{

@ -92,7 +92,7 @@ class CourseChatUtils
}
$user = api_get_user_entity($this->userId);
$courseInfo = api_get_course_info_by_id($this->courseId);
$isMaster = (bool) api_is_course_admin();
$isMaster = api_is_course_admin();
$document_path = api_get_path(SYS_COURSE_PATH).$courseInfo['path'].'/document';
$basepath_chat = '/chat_files';
$group_info = [];

@ -168,8 +168,9 @@ function get_lang($variable, $strict = false, $language = null)
* language value will be returned, for example 'french' instead of 'french_unicode'
* @param bool $setParentLanguageName
*
* @return string the current language of the interface
* @throws Exception
*
* @return string the current language of the interface
*/
function api_get_interface_language(
$purified = false,

@ -39,7 +39,8 @@ class BranchSyncRepository extends NestedTreeRepository
}
/**
* Gets the first branch with parent_id = NULL
* Gets the first branch with parent_id = NULL.
*
* @return mixed
*/
public function getTopBranch()

@ -672,7 +672,6 @@ class UserRepository extends EntityRepository
$trackEAccessList[] = implode(', ', $list);
}
// TrackEOnline
$criteria = [
'loginUserId' => $userId,

Loading…
Cancel
Save