Fix show include files with Redirection plugin is enabled - refs 14345

pull/2573/head
Angel Fernando Quiroz Campos 7 years ago committed by GitHub
parent 760c6c6b4c
commit bdfb1ca920
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
  1. 8
      index.php

@ -14,17 +14,15 @@ define('CHAMILO_LOAD_WYSIWYG', false);
$cidReset = true;
require_once 'main/inc/global.inc.php';
$allow = api_get_configuration_value('plugin_redirection_enabled');
if ($allow) {
RedirectionPlugin::redirectUser(api_get_user_id());
}
// The section (for the tabs).
$this_section = SECTION_CAMPUS; //rewritten below if including HTML file
$includeFile = !empty($_GET['include']);
if ($includeFile) {
$this_section = SECTION_INCLUDE;
} elseif (api_get_configuration_value('plugin_redirection_enabled')) {
RedirectionPlugin::redirectUser(api_get_user_id());
}
$header_title = null;
if (!api_is_anonymous()) {
$header_title = ' ';

Loading…
Cancel
Save