Minor - flint fixes

pull/2475/head
jmontoyaa 8 years ago
parent 93c5a19089
commit a84c5a9faa
  1. 6
      main/inc/lib/sessionmanager.lib.php
  2. 8
      main/inc/lib/userportal.lib.php
  3. 1
      src/Chamilo/CoreBundle/Entity/Repository/TemplatesRepository.php
  4. 3
      src/Chamilo/CourseBundle/Entity/Repository/CStudentPublicationRepository.php

@ -3200,7 +3200,7 @@ class SessionManager
} }
/** /**
* Get the session image * Get the session image.
* *
* @return image path * @return image path
*/ */
@ -3224,9 +3224,9 @@ class SessionManager
} }
/** /**
* Get Hot Sessions (limit 8) * Get Hot Sessions (limit 8).
* *
* @return Array with sessions * @return array with sessions
*/ */
public static function getHotSessions() public static function getHotSessions()
{ {

@ -276,7 +276,7 @@ class IndexManager
// Including the page for the news // Including the page for the news
$html = ''; $html = '';
if (!empty($_GET['include']) && preg_match('/^[a-zA-Z0-9_-]*\.html$/', $_GET['include'])) { if (!empty($_GET['include']) && preg_match('/^[a-zA-Z0-9_-]*\.html$/', $_GET['include'])) {
$open = @(string)file_get_contents($this->home.$_GET['include']); $open = @(string) file_get_contents($this->home.$_GET['include']);
$html = api_to_system_encoding($open, api_detect_encoding(strip_tags($open))); $html = api_to_system_encoding($open, api_detect_encoding(strip_tags($open)));
} else { } else {
// Hiding home top when user not connected. // Hiding home top when user not connected.
@ -330,9 +330,9 @@ class IndexManager
$user_selected_language = api_get_interface_language(); $user_selected_language = api_get_interface_language();
$html = ''; $html = '';
// Notice // Notice
$home_notice = @(string)file_get_contents($this->home.'home_notice_'.$user_selected_language.'.html'); $home_notice = @(string) file_get_contents($this->home.'home_notice_'.$user_selected_language.'.html');
if (empty($home_notice)) { if (empty($home_notice)) {
$home_notice = @(string)file_get_contents($this->home.'home_notice.html'); $home_notice = @(string) file_get_contents($this->home.'home_notice.html');
} }
if (!empty($home_notice)) { if (!empty($home_notice)) {
$home_notice = api_to_system_encoding($home_notice, api_detect_encoding(strip_tags($home_notice))); $home_notice = api_to_system_encoding($home_notice, api_detect_encoding(strip_tags($home_notice)));
@ -364,7 +364,7 @@ class IndexManager
} }
$html = ''; $html = '';
$home_menu = @(string)file_get_contents($this->home.'home_menu_'.$user_selected_language.'.html'); $home_menu = @(string) file_get_contents($this->home.'home_menu_'.$user_selected_language.'.html');
if (!empty($home_menu)) { if (!empty($home_menu)) {
$home_menu_content = '<ul class="nav nav-pills nav-stacked">'; $home_menu_content = '<ul class="nav nav-pills nav-stacked">';
$home_menu_content .= api_to_system_encoding($home_menu, api_detect_encoding(strip_tags($home_menu))); $home_menu_content .= api_to_system_encoding($home_menu, api_detect_encoding(strip_tags($home_menu)));

@ -5,7 +5,6 @@ namespace Chamilo\CoreBundle\Entity\Repository;
use Chamilo\CoreBundle\Entity\Course; use Chamilo\CoreBundle\Entity\Course;
use Chamilo\UserBundle\Entity\User; use Chamilo\UserBundle\Entity\User;
use Doctrine\Common\Collections\ArrayCollection;
use Doctrine\ORM\EntityRepository; use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\Query\Expr\Join; use Doctrine\ORM\Query\Expr\Join;

@ -10,7 +10,8 @@ use Doctrine\ORM\EntityRepository;
use Doctrine\ORM\Query\Expr\Join; use Doctrine\ORM\Query\Expr\Join;
/** /**
* Class CStudentPublicationRepository * Class CStudentPublicationRepository.
*
* @package Chamilo\CourseBundle\Entity\Repository * @package Chamilo\CourseBundle\Entity\Repository
*/ */
class CStudentPublicationRepository extends EntityRepository class CStudentPublicationRepository extends EntityRepository

Loading…
Cancel
Save