summaryrefslogtreecommitdiffstats
path: root/apps
diff options
context:
space:
mode:
authorBjörn Schießle <schiessle@owncloud.com>2013-03-01 12:44:43 +0100
committerBjörn Schießle <schiessle@owncloud.com>2013-03-01 12:44:43 +0100
commitdf2a9a3c60c3ada040216a97869644fcb14816f3 (patch)
tree0ead3bcf4c7ed39f48e458b88587a66cc43c378f /apps
parent7c360c24919b566a15237c0958af45dc63a1b58e (diff)
downloadnextcloud-server-df2a9a3c60c3ada040216a97869644fcb14816f3.tar.gz
nextcloud-server-df2a9a3c60c3ada040216a97869644fcb14816f3.zip
add additional parameter to signal
Diffstat (limited to 'apps')
-rw-r--r--apps/files_trashbin/lib/trash.php8
1 files changed, 6 insertions, 2 deletions
diff --git a/apps/files_trashbin/lib/trash.php b/apps/files_trashbin/lib/trash.php
index f83716aba02..6dedd314cf2 100644
--- a/apps/files_trashbin/lib/trash.php
+++ b/apps/files_trashbin/lib/trash.php
@@ -71,7 +71,9 @@ class Trashbin {
\OC_Log::write('files_trashbin', 'trash bin database couldn\'t be updated', \OC_log::ERROR);
return;
}
- \OCP\Util::emitHook('\OCA\Files_Trashbin\Trashbin', 'post_moveToTrash', array('path' => \OC\Files\Filesystem::normalizePath($file_path)));
+ \OCP\Util::emitHook('\OCA\Files_Trashbin\Trashbin', 'post_moveToTrash',
+ array('filePath' => \OC\Files\Filesystem::normalizePath($file_path),
+ 'trashPath' => \OC\Files\Filesystem::normalizePath($deleted.'.d'.$timestamp)));
// Take care of file versions
if ( \OCP\App::isEnabled('files_versions') ) {
@@ -174,7 +176,9 @@ class Trashbin {
$mtime = $view->filemtime($source);
if( $view->rename($source, $target.$ext) ) {
$view->touch($target.$ext, $mtime);
- \OCP\Util::emitHook('\OCA\Files_Trashbin\Trashbin', 'post_restore', array('path' => \OC\Files\Filesystem::normalizePath('/'.$location.'/'.$filename.$ext)));
+ \OCP\Util::emitHook('\OCA\Files_Trashbin\Trashbin', 'post_restore',
+ array('filePath' => \OC\Files\Filesystem::normalizePath('/'.$location.'/'.$filename.$ext),
+ 'trashPath' => \OC\Files\Filesystem::normalizePath($file)));
if ($view->is_dir($target.$ext)) {
$trashbinSize -= self::calculateSize(new \OC\Files\View('/'.$user.'/'.$target.$ext));
} else {