[Pkg-owncloud-commits] [owncloud] 35/86: Dont output paths in scan.php

David Prévot taffit at moszumanska.debian.org
Tue Dec 22 16:51:57 UTC 2015


This is an automated email from the git hooks/post-receive script.

taffit pushed a commit to annotated tag v8.1.5
in repository owncloud.

commit a4a7ee1761ddd1681e7a8d5868ae4a6c671495fa
Author: Robin Appelman <icewind at owncloud.com>
Date:   Wed Nov 25 15:21:01 2015 +0100

    Dont output paths in scan.php
---
 apps/files/ajax/scan.php | 8 --------
 1 file changed, 8 deletions(-)

diff --git a/apps/files/ajax/scan.php b/apps/files/ajax/scan.php
index 3f430cd..276e69b 100644
--- a/apps/files/ajax/scan.php
+++ b/apps/files/ajax/scan.php
@@ -47,7 +47,6 @@ $listener = new ScanListener($eventSource);
 foreach ($users as $user) {
 	$eventSource->send('user', $user);
 	$scanner = new \OC\Files\Utils\Scanner($user, \OC::$server->getDatabaseConnection());
-	$scanner->listen('\OC\Files\Utils\Scanner', 'scanFile', array($listener, 'file'));
 	$scanner->listen('\OC\Files\Utils\Scanner', 'scanFolder', array($listener, 'folder'));
 	if ($force) {
 		$scanner->scan($dir);
@@ -76,13 +75,6 @@ class ScanListener {
 		$this->eventSource = $eventSource;
 	}
 
-	/**
-	 * @param string $path
-	 */
-	public function folder($path) {
-		$this->eventSource->send('folder', $path);
-	}
-
 	public function file() {
 		$this->fileCount++;
 		if ($this->fileCount > $this->lastCount + 20) { //send a count update every 20 files

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-owncloud/owncloud.git



More information about the Pkg-owncloud-commits mailing list