Minor - flint fixes

pull/2837/head
Julio Montoya 6 years ago
parent 1e67be6550
commit cec93780ae
  1. 2
      main/inc/lib/document.lib.php
  2. 1
      public/courses.php
  3. 4
      src/CoreBundle/Controller/ResourceController.php
  4. 3
      src/CoreBundle/Repository/ResourceRepository.php
  5. 3
      src/PageBundle/Controller/PageController.php

@ -4,10 +4,10 @@
use Chamilo\CoreBundle\Entity\Resource\ResourceFile;
use Chamilo\CoreBundle\Entity\Resource\ResourceLink;
use Chamilo\CoreBundle\Entity\Resource\ResourceRight;
use Chamilo\CourseBundle\Entity\CGroupInfo;
use Chamilo\CoreBundle\Framework\Container;
use Chamilo\CoreBundle\Security\Authorization\Voter\ResourceNodeVoter;
use Chamilo\CourseBundle\Entity\CDocument;
use Chamilo\CourseBundle\Entity\CGroupInfo;
use Chamilo\UserBundle\Entity\User;
use ChamiloSession as Session;
use Symfony\Component\HttpFoundation\File\UploadedFile;

@ -9,7 +9,6 @@ require_once '../main/inc/global.inc.php';
* That route uses the Symfony ResourceController see:
* /src/CoreBundle/Controller/ResourceController.php.
*/
$publicPath = api_get_path(WEB_PUBLIC_PATH);
// http://localhost/chamilo2/courses/ABC/document/aa.html
$courseCode = Security::remove_XSS($_GET['courseCode']);

@ -29,7 +29,6 @@ use Symfony\Component\HttpFoundation\Response;
use Symfony\Component\HttpKernel\Exception\HttpException;
use Symfony\Component\HttpKernel\Exception\NotFoundHttpException;
/**
* Class ResourceController.
*
@ -397,7 +396,7 @@ class ResourceController extends BaseController implements CourseControllerInter
}
/**
* Shows a resource
* Shows a resource.
*
* @param Request $request
* @param CDocumentRepository $documentRepo
@ -485,7 +484,6 @@ class ResourceController extends BaseController implements CourseControllerInter
}
throw new NotFoundHttpException();
/*
$configuration = $this->requestConfigurationFactory->create($this->metadata, $request);

@ -13,9 +13,6 @@ use Chamilo\CoreBundle\Entity\Tool;
use Chamilo\CoreBundle\Entity\Usergroup;
use Chamilo\CourseBundle\Entity\CGroupInfo;
use Chamilo\UserBundle\Entity\User;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepository;
use Doctrine\Bundle\DoctrineBundle\Repository\ServiceEntityRepositoryInterface;
use Doctrine\Common\Persistence\ObjectRepository;
use Doctrine\ORM\EntityManager;
use Doctrine\ORM\Query\Expr\Join;

@ -80,8 +80,9 @@ class PageController extends BaseController
* @param BlockInteractor $blockInteractor
* @param BlockManager $blockManager
*
* @return \Symfony\Component\HttpFoundation\RedirectResponse|Response
* @throws \Exception
*
* @return \Symfony\Component\HttpFoundation\RedirectResponse|Response
*/
public function createPage(
$pageSlug,

Loading…
Cancel
Save