fixed import_items.csv template download path

This commit is contained in:
William Chanrico
2016-11-01 05:39:23 +07:00
parent e42aaed0b1
commit 2cbff93ab5

View File

@@ -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);
}