From a2a47ead7dae446081b12d5f8eca08077c7e8bc6 Mon Sep 17 00:00:00 2001 From: Alan Garcia Date: Mon, 27 Aug 2012 10:37:58 +0000 Subject: [PATCH] Bugfixes m_log --- bureau/class/m_log.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/bureau/class/m_log.php b/bureau/class/m_log.php index 8c8d229d..adea3b6f 100644 --- a/bureau/class/m_log.php +++ b/bureau/class/m_log.php @@ -73,6 +73,7 @@ class m_log { function get_logs_directory(){ global $cuid,$mem,$err; $err->log("log","get_logs_directory"); + // Return an array to allow multiple directory in the future $c=array("dir"=>ALTERNC_LOGS."/".$cuid."-".$mem->user["login"]); return $c; } @@ -80,7 +81,7 @@ class m_log { function download_link($file){ global $err,$mem; $err->log("log","download_link"); - header("Content-Disposition: attachment; filename=$file"); + header("Content-Disposition: attachment; filename=".$file); header("Content-Type: application/force-download"); header("Content-Transfer-Encoding: binary"); $f=$this->get_logs_directory();