From 3d68d172af6ede67fad7bbed2a61a60663ef226e Mon Sep 17 00:00:00 2001 From: Vincent Petry Date: Fri, 26 Sep 2014 12:51:25 +0200 Subject: Added failing unit tests for mount config hooks --- apps/files_external/lib/config.php | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) (limited to 'apps/files_external/lib') 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; -- cgit v1.2.3