From af0cbeb0adf18bd022e93c3324eb4add7274c623 Mon Sep 17 00:00:00 2001 From: jmontoyaa Date: Wed, 17 Jan 2018 10:12:16 +0100 Subject: [PATCH] Fix wrong forum link when using it inside a course group #2269 --- main/forum/viewforumcategory.php | 20 ++++++++------------ 1 file changed, 8 insertions(+), 12 deletions(-) diff --git a/main/forum/viewforumcategory.php b/main/forum/viewforumcategory.php index 5bfbad667f..fadb9ba272 100755 --- a/main/forum/viewforumcategory.php +++ b/main/forum/viewforumcategory.php @@ -2,6 +2,7 @@ /* For licensing terms, see /license.txt */ use Chamilo\CourseBundle\Entity\CForumPost; +use ChamiloSession as Session; /** * These files are a complete rework of the forum. The database structure is @@ -26,6 +27,8 @@ use Chamilo\CourseBundle\Entity\CForumPost; require_once __DIR__.'/../inc/global.inc.php'; +Session::erase('_gid'); + $htmlHeadXtra[] = '