diff options
author | Frank Karlitschek <frank@owncloud.org> | 2012-05-03 13:06:08 +0200 |
---|---|---|
committer | Frank Karlitschek <frank@owncloud.org> | 2012-05-03 13:06:08 +0200 |
commit | 97a8af7f2519e9ba01c2ff0c16a3102f716c0d13 (patch) | |
tree | 9f6a83c9da6a18ce0cd14f8513c6f647a8edc956 /apps/media/ajax/api.php | |
parent | f85d076a4e1df2de8b7b75e379d52fd71807ae01 (diff) | |
download | nextcloud-server-97a8af7f2519e9ba01c2ff0c16a3102f716c0d13.tar.gz nextcloud-server-97a8af7f2519e9ba01c2ff0c16a3102f716c0d13.zip |
ported oc_db
Diffstat (limited to 'apps/media/ajax/api.php')
-rwxr-xr-x | apps/media/ajax/api.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/media/ajax/api.php b/apps/media/ajax/api.php index 130344ac6dc..37dc6380198 100755 --- a/apps/media/ajax/api.php +++ b/apps/media/ajax/api.php @@ -67,12 +67,12 @@ if($arguments['action']){ OCP\JSON::encodedPrint($data); break; case 'scan': - OC_DB::beginTransaction(); + OCP\DB::beginTransaction(); set_time_limit(0); //recursive scan can take a while $eventSource=new OC_EventSource(); OC_MEDIA_SCANNER::scanCollection($eventSource); $eventSource->close(); - OC_DB::commit(); + OCP\DB::commit(); break; case 'scanFile': echo (OC_MEDIA_SCANNER::scanFile($arguments['path']))?'true':'false'; |