summaryrefslogtreecommitdiffstats
path: root/apps/files/ajax
diff options
context:
space:
mode:
authorRobin Appelman <icewind@owncloud.com>2014-09-04 01:10:02 +0200
committerRobin Appelman <icewind@owncloud.com>2014-09-04 13:26:51 +0200
commitfa3393674c854e884abf10d3b82dab03aca83c61 (patch)
tree0560b9ec8bf3ff28fb6cea81bfe4255f48e7157d /apps/files/ajax
parent8605e2e6a5ac637ed552d9469f3dc31717b4ea3e (diff)
downloadnextcloud-server-fa3393674c854e884abf10d3b82dab03aca83c61.tar.gz
nextcloud-server-fa3393674c854e884abf10d3b82dab03aca83c61.zip
Better phpdoc and method naming
Diffstat (limited to 'apps/files/ajax')
-rw-r--r--apps/files/ajax/newfile.php2
-rw-r--r--apps/files/ajax/scan.php2
2 files changed, 2 insertions, 2 deletions
diff --git a/apps/files/ajax/newfile.php b/apps/files/ajax/newfile.php
index 1070246fca9..46629e1b602 100644
--- a/apps/files/ajax/newfile.php
+++ b/apps/files/ajax/newfile.php
@@ -16,7 +16,7 @@ $content = isset( $_REQUEST['content'] ) ? $_REQUEST['content'] : '';
$source = isset( $_REQUEST['source'] ) ? trim($_REQUEST['source'], '/\\') : '';
if($source) {
- $eventSource = \OC::$server->getEventSource();
+ $eventSource = \OC::$server->createEventSource();
} else {
OC_JSON::callCheck();
}
diff --git a/apps/files/ajax/scan.php b/apps/files/ajax/scan.php
index eed620113ac..da5a2ce6f26 100644
--- a/apps/files/ajax/scan.php
+++ b/apps/files/ajax/scan.php
@@ -15,7 +15,7 @@ if (isset($_GET['users'])) {
$users = array(OC_User::getUser());
}
-$eventSource = \OC::$server->getEventSource();
+$eventSource = \OC::$server->createEventSource();
$listener = new ScanListener($eventSource);
foreach ($users as $user) {