aboutsummaryrefslogtreecommitdiff
path: root/lib/filesystem/StandardFolder.php
diff options
context:
space:
mode:
authorPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-09-24 10:53:31 +0200
committerPhilipp Schüttlöffel <schuettloeffel@zqs.uni-hannover.de>2024-09-24 10:53:31 +0200
commit4459dd7917f4d1c34f40bb68f0e991e9c3d53e4c (patch)
tree5c07151ae61276d334e88f6309c30d439a85c12e /lib/filesystem/StandardFolder.php
parentda0022e5c1abbf9825ae76debaabdff7e8623bb4 (diff)
parent97a188592c679890a25c37ab78463add76a52ff7 (diff)
Merge branch 'main' into issue-3911issue-3911
Diffstat (limited to 'lib/filesystem/StandardFolder.php')
-rw-r--r--lib/filesystem/StandardFolder.php19
1 files changed, 11 insertions, 8 deletions
diff --git a/lib/filesystem/StandardFolder.php b/lib/filesystem/StandardFolder.php
index a34ca4a..c387bb9 100644
--- a/lib/filesystem/StandardFolder.php
+++ b/lib/filesystem/StandardFolder.php
@@ -186,7 +186,7 @@ class StandardFolder implements FolderType
}
/**
- * @return string|Flexi_Template
+ * @return string|Flexi\Template
*/
public function getDescriptionTemplate()
{
@@ -194,7 +194,7 @@ class StandardFolder implements FolderType
}
/**
- * @return string|Flexi_Template
+ * @return string|Flexi\Template
*/
public function getEditTemplate()
{
@@ -224,14 +224,13 @@ class StandardFolder implements FolderType
}
/**
- * @param FileType $newfile
- * @param string $user_id
+ * @param string $user_id
* @return string
*/
- public function validateUpload(FileType $newfile, $user_id)
+ public function validateUpload(FileType $file, $user_id)
{
$upload_type = FileManager::getUploadTypeConfig($this->range_id, $user_id);
- return $this->getValidationMessages($upload_type, $newfile);
+ return $this->getValidationMessages($upload_type, $file);
}
protected function getValidationMessages($upload_type, $newfile)
@@ -256,6 +255,8 @@ class StandardFolder implements FolderType
if (in_array($ext, $types) && $upload_type['type'] === 'allow') {
return sprintf(_('Sie dürfen den Dateityp %s nicht hochladen!'), $ext);
}
+
+ return null;
}
/**
@@ -509,9 +510,11 @@ class StandardFolder implements FolderType
/**
* Returns the content for that additional column, if it exists. You can return null a string
- * or a Flexi_Template as the content.
+ * or a Flexi\Template as the content.
+ *
* @param string $column_index
- * @return null|string|Flexi_Template
+ *
+ * @return null|string|Flexi\Template
*/
public function getContentForAdditionalColumn($column_index)
{