diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-09-26 12:51:25 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-10-08 14:22:17 +0200 |
commit | 6585eaa5df7a4481638a334926743d496f243d65 (patch) | |
tree | a9c8b9f36d345d8c60d4ee917156b4f09841d47d /apps/files_external/lib/config.php | |
parent | 0610937ac3ccd491b2e62133edbf76f1bb151467 (diff) | |
download | nextcloud-server-6585eaa5df7a4481638a334926743d496f243d65.tar.gz nextcloud-server-6585eaa5df7a4481638a334926743d496f243d65.zip |
Added failing unit tests for mount config hooks
Diffstat (limited to 'apps/files_external/lib/config.php')
-rwxr-xr-x | apps/files_external/lib/config.php | 16 |
1 files changed, 8 insertions, 8 deletions
diff --git a/apps/files_external/lib/config.php b/apps/files_external/lib/config.php index 2a32d239b4c..0b5e833a704 100755 --- a/apps/files_external/lib/config.php +++ b/apps/files_external/lib/config.php @@ -518,11 +518,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, ) ); } @@ -561,11 +561,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; |