summaryrefslogtreecommitdiffstats
path: root/apps/files_external/lib
diff options
context:
space:
mode:
authorVincent Petry <pvince81@owncloud.com>2014-09-26 12:51:25 +0200
committerVincent Petry <pvince81@owncloud.com>2014-10-09 18:18:50 +0200
commit3d68d172af6ede67fad7bbed2a61a60663ef226e (patch)
treef76584eee042e9a231da41f44f424548bf041eea /apps/files_external/lib
parentfe652258be5248aa2c9827a317ed30361f109594 (diff)
downloadnextcloud-server-3d68d172af6ede67fad7bbed2a61a60663ef226e.tar.gz
nextcloud-server-3d68d172af6ede67fad7bbed2a61a60663ef226e.zip
Added failing unit tests for mount config hooks
Diffstat (limited to 'apps/files_external/lib')
-rwxr-xr-xapps/files_external/lib/config.php16
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php
index 68a9e7e4106..6d46fd710b7 100755
--- a/apps/files_external/lib/config.php
+++ b/apps/files_external/lib/config.php
@@ -514,11 +514,11 @@ class OC_Mount_Config {
if ($result && $isNew) {
\OC_Hook::emit(
\OC\Files\Filesystem::CLASSNAME,
- 'add_mount_point',
+ \OC\Files\Filesystem::signal_create_mount,
array(
- 'path' => $mountPoint,
- 'type' => $mountType,
- 'applicable' => $applicable
+ \OC\Files\Filesystem::signal_param_path => $mountPoint,
+ \OC\Files\Filesystem::signal_param_mount_type => $mountType,
+ \OC\Files\Filesystem::signal_param_users => $applicable,
)
);
}
@@ -557,11 +557,11 @@ class OC_Mount_Config {
self::writeData($isPersonal ? OCP\User::getUser() : NULL, $mountPoints);
\OC_Hook::emit(
\OC\Files\Filesystem::CLASSNAME,
- 'remove_mount_point',
+ \OC\Files\Filesystem::signal_delete_mount,
array(
- 'path' => $mountPoint,
- 'type' => $mountType,
- 'applicable' => $applicable
+ \OC\Files\Filesystem::signal_param_path => $mountPoint,
+ \OC\Files\Filesystem::signal_param_mount_type => $mountType,
+ \OC\Files\Filesystem::signal_param_users => $applicable,
)
);
return true;