From 2cbff93ab5e6088302e388d051afb222662b0c8e Mon Sep 17 00:00:00 2001 From: William Chanrico Date: Tue, 1 Nov 2016 05:39:23 +0700 Subject: [PATCH] fixed import_items.csv template download path --- application/controllers/Items.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/application/controllers/Items.php b/application/controllers/Items.php index 7b0b21ba7..47d4c059f 100644 --- a/application/controllers/Items.php +++ b/application/controllers/Items.php @@ -564,7 +564,8 @@ class Items extends Secure_Controller public function excel() { $name = 'import_items.csv'; - $data = file_get_contents($name); + $dir = '..'; + $data = file_get_contents($dir . '/' . $name); force_download($name, $data); }