From ffe011b1db34b42346884c42bda8ceb8abe0e4a5 Mon Sep 17 00:00:00 2001 From: x2003bruneau Date: Wed, 31 Jan 2007 18:13:56 +0000 Subject: [PATCH] Fix user info send when the user reports a bug git-svn-id: svn+ssh://murphy/home/svn/platal/branches/platal-0.9.13@1452 839d8a87-29fc-0310-9880-83ba4fa771e5 --- modules/core.php | 4 ++-- templates/core/bug.tpl | 4 +--- 2 files changed, 3 insertions(+), 5 deletions(-) diff --git a/modules/core.php b/modules/core.php index 1680b47..2ac92ce 100644 --- a/modules/core.php +++ b/modules/core.php @@ -115,8 +115,8 @@ class CoreModule extends PLModule . "----------------------------\n" . "Page : " . Env::v('page') . "\n\n" . "Utilisateur : " . S::v('forlife') . "\n" - . "Navigateur : " . Env::v('browser') . "\n" - . "Skin : " . Env::v('skin') . "\n"; + . "Navigateur : " . $_SERVER['HTTP_USER_AGENT'] . "\n" + . "Skin : " . S::v('skin') . "\n"; $page->assign('bug_sent',1); $mymail = new PlMailer(); $mymail->setFrom('"'.S::v('prenom').' '.S::v('nom').'" <'.S::v('bestalias').'@polytechnique.org>'); diff --git a/templates/core/bug.tpl b/templates/core/bug.tpl index e3059f6..bbfdfc3 100644 --- a/templates/core/bug.tpl +++ b/templates/core/bug.tpl @@ -62,9 +62,7 @@ function fillContent()   Sujet : - - - +
-- 2.1.4