diff options
author | Vincent Petry <pvince81@owncloud.com> | 2014-09-26 12:51:25 +0200 |
---|---|---|
committer | Vincent Petry <pvince81@owncloud.com> | 2014-10-09 18:18:50 +0200 |
commit | 3d68d172af6ede67fad7bbed2a61a60663ef226e (patch) | |
tree | f76584eee042e9a231da41f44f424548bf041eea /apps/files_external/lib | |
parent | fe652258be5248aa2c9827a317ed30361f109594 (diff) | |
download | nextcloud-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-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 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; |