aboutsummaryrefslogtreecommitdiff
path: root/app/controllers/files_dashboard
diff options
context:
space:
mode:
Diffstat (limited to 'app/controllers/files_dashboard')
-rw-r--r--app/controllers/files_dashboard/helpers.php14
1 files changed, 7 insertions, 7 deletions
diff --git a/app/controllers/files_dashboard/helpers.php b/app/controllers/files_dashboard/helpers.php
index 4489e04..dc759a1 100644
--- a/app/controllers/files_dashboard/helpers.php
+++ b/app/controllers/files_dashboard/helpers.php
@@ -10,9 +10,9 @@ trait Helpers
/**
* Create an action menu for a file. This method is used by the template.
*
- * @param FileRef $fileRef the file whose action shall be created
- * @param FolderType $folder the file's folder
- * @param User $user the user for whom the actions shall be created
+ * @param \FileRef $fileRef the file whose action shall be created
+ * @param \FolderType $folder the file's folder
+ * @param \User $user the user for whom the actions shall be created
*
* @return string the HTML fragment of the action menu
*/
@@ -37,7 +37,7 @@ trait Helpers
);
}
- if ($folder->isFileEditable($fileRef->id, $user->id)) {
+ if ($folder->isFileEditable($fileRef, $user->id)) {
$actionMenu->addLink(
URLHelper::getURL('dispatch.php/file/edit/'.$fileRef->id),
_('Datei bearbeiten'),
@@ -52,7 +52,7 @@ trait Helpers
);
}
- if ($folder->isFileWritable($fileRef->id, $user->id)) {
+ if ($folder->isFileWritable($fileRef, $user->id)) {
$actionMenu->addLink(
URLHelper::getURL('dispatch.php/file/choose_destination/move/'.$fileRef->id),
_('Datei verschieben'),
@@ -61,7 +61,7 @@ trait Helpers
);
}
- if ($folder->isFileDownloadable($fileRef->id, $user->id)) {
+ if ($folder->isFileDownloadable($fileRef, $user->id)) {
$actionMenu->addLink(
URLHelper::getURL('dispatch.php/file/choose_destination/copy/'.$fileRef->id),
_('Datei kopieren'),
@@ -70,7 +70,7 @@ trait Helpers
);
}
- if ($folder->isFileWritable($fileRef->id, $user->id)) {
+ if ($folder->isFileWritable($fileRef, $user->id)) {
$actionMenu->addLink(
URLHelper::getURL('dispatch.php/file/delete/'.$fileRef->id),
_('Datei löschen'),