[BUGFIX] Followup to #54226 70/27170/2
authorBenjamin Mack <benni@typo3.org>
Thu, 30 Jan 2014 20:35:41 +0000 (21:35 +0100)
committerBenjamin Mack <benni@typo3.org>
Thu, 30 Jan 2014 20:35:57 +0000 (21:35 +0100)
The fix for issue #54226 introduced a bug
with FileReferences as it did not implement the
change of the interface.

Resolves: #54226
Releases: 6.2
Change-Id: I9f67f3f23b96569cdfadba1505e4881103a86ccb
Reviewed-on: https://review.typo3.org/27170
Reviewed-by: Benjamin Mack
Tested-by: Benjamin Mack
typo3/sysext/core/Classes/Resource/FileReference.php

index 47b90b3..705576e 100644 (file)
@@ -484,4 +484,13 @@ class FileReference implements FileInterface {
        public function getHashedIdentifier() {
                return $this->getStorage()->hashFileIdentifier($this->getIdentifier());
        }
+
+       /**
+        * Returns the parent folder.
+        *
+        * @return FolderInterface
+        */
+       public function getParentFolder() {
+               return $this->originalFile->getParentFolder();
+       }
 }