aboutsummaryrefslogtreecommitdiffstats
path: root/apps/gallery/ajax/galleryOp.php
diff options
context:
space:
mode:
Diffstat (limited to 'apps/gallery/ajax/galleryOp.php')
-rwxr-xr-xapps/gallery/ajax/galleryOp.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/apps/gallery/ajax/galleryOp.php b/apps/gallery/ajax/galleryOp.php
index b9ca31901c3..0cd825f3e50 100755
--- a/apps/gallery/ajax/galleryOp.php
+++ b/apps/gallery/ajax/galleryOp.php
@@ -48,13 +48,13 @@ function handleGetThumbnails($albumname) {
}
function handleGalleryScanning() {
- OC_DB::beginTransaction();
+ OCP\DB::beginTransaction();
set_time_limit(0);
OC_Gallery_Album::cleanup();
$eventSource = new OC_EventSource();
OC_Gallery_Scanner::scan($eventSource);
$eventSource->close();
- OC_DB::commit();
+ OCP\DB::commit();
}
function handleFilescan($cleanup) {