From 849436762ad61dd11e7f4f9f44f34b6b8e0d0161 Mon Sep 17 00:00:00 2001 From: Eric Marguin Date: Tue, 30 Jan 2007 13:11:20 +0100 Subject: [PATCH] [svn r11014] fix a bug when answering a thread in the lp --- main/forum/reply.php | 19 +++++++++++++++++-- 1 file changed, 17 insertions(+), 2 deletions(-) diff --git a/main/forum/reply.php b/main/forum/reply.php index b8d383dc77..9b6d4fe2b4 100644 --- a/main/forum/reply.php +++ b/main/forum/reply.php @@ -81,6 +81,13 @@ require_once (api_get_path(LIBRARY_PATH).'formvalidator/FormValidator.class.php' include_once (api_get_path(LIBRARY_PATH).'groupmanager.lib.php'); $nameTools=get_lang('Forum'); +$origin = ''; +if(isset($_GET['origin'])) +{ + $origin = $_GET['origin']; + $origin_string = '&origin='.$origin; +} + /* ----------------------------------------------------------- Including necessary files @@ -130,13 +137,21 @@ if (isset($_POST['add_resources']) AND $_POST['add_resources']==get_lang('Resour header("Location: ../resourcelinker/resourcelinker.php"); } + + /* ----------------------------------------------------------- Header ----------------------------------------------------------- */ -Display :: display_header(); -api_display_tool_title($nameTools); +if($origin=='learnpath') +{ + include(api_get_path(INCLUDE_PATH).'reduced_header.inc.php'); +} else +{ + Display :: display_header(); + api_display_tool_title($nameTools); +} //echo ''; /*