diff --git a/module/caselib/control.php b/module/caselib/control.php index 6464c37f9c..0432ab7b2a 100644 --- a/module/caselib/control.php +++ b/module/caselib/control.php @@ -568,7 +568,7 @@ class caselib extends control $this->loadModel('testcase'); $file = $this->session->fileImport; - $tmpPath = $this->loadModel('file')->getImportTmp(); + $tmpPath = $this->loadModel('file')->getPathOfImportedFile(); $tmpFile = $tmpPath . DS . md5(basename($file)); if($_POST) diff --git a/module/file/model.php b/module/file/model.php index 676508d3cf..fb13444fb7 100644 --- a/module/file/model.php +++ b/module/file/model.php @@ -354,7 +354,7 @@ class fileModel extends model * @access public * @return string */ - public function getImportTmp() + public function getPathOfImportedFile() { $path = $this->app->getTmpRoot() . 'import'; if(!is_dir($path)) mkdir($path, 0755, true); diff --git a/module/testcase/control.php b/module/testcase/control.php index 4083ad9e9f..d7963fef17 100644 --- a/module/testcase/control.php +++ b/module/testcase/control.php @@ -1510,7 +1510,7 @@ class testcase extends control public function showImport($productID, $branch = 0, $pagerID = 1, $maxImport = 0) { $file = $this->session->fileImport; - $tmpPath = $this->loadModel('file')->getImportTmp(); + $tmpPath = $this->loadModel('file')->getPathOfImportedFile(); $tmpFile = $tmpPath . DS . md5(basename($file)); if($_POST)