Admin: Redirect main/admin/index.php to /admin - refs BT#22275

pull/5966/head
Angel Fernando Quiroz Campos 9 months ago
parent db594c22dd
commit ab3187d3e8
No known key found for this signature in database
GPG Key ID: B284841AE3E562CD
  1. 9
      public/main/admin/index.php

@ -10,6 +10,8 @@ use Chamilo\CoreBundle\Component\Utils\ActionIcon;
use Chamilo\CoreBundle\Component\Utils\ToolIcon;
use Chamilo\CoreBundle\Component\Utils\ObjectIcon;
use Chamilo\CoreBundle\Component\Utils\StateIcon;
use Chamilo\CoreBundle\Framework\Container;
use Symfony\Component\HttpFoundation\RedirectResponse;
// Resetting the course id.
$cidReset = true;
@ -17,6 +19,13 @@ $cidReset = true;
// Including some necessary chamilo files.
require_once __DIR__.'/../inc/global.inc.php';
$response = new RedirectResponse(
Container::getRouter()->generate('admin')
);
$response->send();
exit;
// Setting the section (for the tabs).
$this_section = SECTION_PLATFORM_ADMIN;

Loading…
Cancel
Save