diff options
Diffstat (limited to 'modules')
-rw-r--r-- | modules/local_import/controllers/local_import.php | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/modules/local_import/controllers/local_import.php b/modules/local_import/controllers/local_import.php index 8fc183b7..ee4a4f1a 100644 --- a/modules/local_import/controllers/local_import.php +++ b/modules/local_import/controllers/local_import.php @@ -65,8 +65,8 @@ class Local_Import_Controller extends Controller { } $path = $this->input->post("path"); - module::event("start_batch"); - + batch::operation("add", $parent); + $source_path = $path[0]; for ($i = 1; $i < count($path); $i++) { // skip the first path $source_path .= "/$path[$i]"; @@ -92,7 +92,7 @@ class Local_Import_Controller extends Controller { } public function finish() { - module::event("end_batch"); + batch::end_operation("add"); print json_encode(array("result" => "success")); } |