Skip to content

Commit

Permalink
Internal: Use alias for Request class #3493
Browse files Browse the repository at this point in the history
  • Loading branch information
AngelFQC committed Sep 4, 2020
1 parent 239f2b9 commit deeb2bc
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions main/inc/ajax/user_manager.ajax.php
Expand Up @@ -4,14 +4,14 @@
use Chamilo\UserBundle\Entity\User;
use Doctrine\Common\Collections\Criteria;
use Doctrine\ORM\Query\Expr\Join;
use Symfony\Component\HttpFoundation\Request;
use Symfony\Component\HttpFoundation\Request as HttpRequest;

/**
* Responses to AJAX calls.
*/
require_once __DIR__.'/../global.inc.php';

$request = Request::createFromGlobals();
$request = HttpRequest::createFromGlobals();
$isRequestByAjax = $request->isXmlHttpRequest();

$action = $_GET['a'];
Expand Down

0 comments on commit deeb2bc

Please sign in to comment.