]> source.dussan.org Git - nextcloud-server.git/commitdiff
Files: use public api to register backgroundjob
authorRobin Appelman <icewind@owncloud.com>
Sun, 2 Jun 2013 19:21:39 +0000 (21:21 +0200)
committerRobin Appelman <icewind@owncloud.com>
Sun, 2 Jun 2013 19:21:39 +0000 (21:21 +0200)
apps/files/appinfo/app.php

index 05ab1722b3e4f5411bb32671bb69dd03582ecd86..99739cb4cee71461bf43d1a6f0e8143b7e8939a4 100644 (file)
@@ -20,4 +20,4 @@ OC_Search::registerProvider('OC_Search_Provider_File');
 \OC_Hook::connect('OC_Filesystem', 'post_delete', '\OC\Files\Cache\Updater', 'deleteHook');
 \OC_Hook::connect('OC_Filesystem', 'post_rename', '\OC\Files\Cache\Updater', 'renameHook');
 
-\OC_BackgroundJob_RegularTask::register('\OC\Files\Cache\BackgroundWatcher', 'checkNext');
+\OCP\BackgroundJob::addRegularTask('\OC\Files\Cache\BackgroundWatcher', 'checkNext');