From 97a8af7f2519e9ba01c2ff0c16a3102f716c0d13 Mon Sep 17 00:00:00 2001 From: Frank Karlitschek Date: Thu, 3 May 2012 13:06:08 +0200 Subject: ported oc_db --- apps/files/ajax/scan.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'apps/files') 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))); -- cgit v1.2.3