aboutsummaryrefslogtreecommitdiffstats
path: root/apps/files
diff options
context:
space:
mode:
authorFrank Karlitschek <frank@owncloud.org>2012-05-03 13:06:08 +0200
committerFrank Karlitschek <frank@owncloud.org>2012-05-03 13:06:08 +0200
commit97a8af7f2519e9ba01c2ff0c16a3102f716c0d13 (patch)
tree9f6a83c9da6a18ce0cd14f8513c6f647a8edc956 /apps/files
parentf85d076a4e1df2de8b7b75e379d52fd71807ae01 (diff)
downloadnextcloud-server-97a8af7f2519e9ba01c2ff0c16a3102f716c0d13.tar.gz
nextcloud-server-97a8af7f2519e9ba01c2ff0c16a3102f716c0d13.zip
ported oc_db
Diffstat (limited to 'apps/files')
-rwxr-xr-xapps/files/ajax/scan.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/ajax/scan.php b/apps/files/ajax/scan.php
index d36366caf49..d695ce81617 100755
--- a/apps/files/ajax/scan.php
+++ b/apps/files/ajax/scan.php
@@ -14,10 +14,10 @@ if(!$checkOnly){
//create the file cache if necesary
if($force or !OC_FileCache::inCache('')){
if(!$checkOnly){
- OC_DB::beginTransaction();
+ OCP\DB::beginTransaction();
OC_FileCache::scan($dir,$eventSource);
OC_FileCache::clean();
- OC_DB::commit();
+ OCP\DB::commit();
$eventSource->send('success',true);
}else{
OCP\JSON::success(array('data'=>array('done'=>true)));