Skip to content

Commit

Permalink
Merge pull request #153 from mamartel/master
Browse files Browse the repository at this point in the history
Fix #150: Add support for NC 18.
  • Loading branch information
e-alfred authored Feb 10, 2020
2 parents 3060eac + dfe078b commit 572be23
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion controller/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,8 @@
use OCP\AppFramework\Http\TemplateResponse;
use \OCP\AppFramework\Http\StrictContentSecurityPolicy;

use OCP\EventDispatcher\IEventDispatcher;

use OCP\IL10N;
use OCP\IRequest;

Expand Down Expand Up @@ -244,7 +246,7 @@ public function removed()
protected function syncDownloadsFolder()
{
$user = $this->CurrentUID; //or normally \OC::$server->getUserSession()->getUser()->getUID();
$scanner = new \OC\Files\Utils\Scanner($user, \OC::$server->getDatabaseConnection(), \OC::$server->getLogger());
$scanner = new \OC\Files\Utils\Scanner($user, \OC::$server->getDatabaseConnection(), \OC::$server->query(IEventDispatcher::class), \OC::$server->getLogger());
$path = '/'.$user.'/files/'.ltrim($this->DownloadsFolder, '/\\');
try {
$scanner->scan($path);
Expand Down

0 comments on commit 572be23

Please sign in to comment.