From bdfb1ca9200ffcd8816027ce449b3bea9f53fba9 Mon Sep 17 00:00:00 2001 From: Angel Fernando Quiroz Campos Date: Fri, 22 Jun 2018 09:38:03 -0500 Subject: [PATCH] Fix show include files with Redirection plugin is enabled - refs 14345 --- index.php | 8 +++----- 1 file changed, 3 insertions(+), 5 deletions(-) diff --git a/index.php b/index.php index fbd0296b1a..f74a423e97 100755 --- a/index.php +++ b/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 = ' ';