Skip to content

Commit

Permalink
Merge pull request #1868 from nextcloud/fix/1867/fix-constant
Browse files Browse the repository at this point in the history
Fix Constant is undefined
  • Loading branch information
CarlSchwan authored Jan 11, 2022
2 parents 07baa68 + 7a5f263 commit 1095224
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions lib/Versions/VersionsBackend.php
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
use OCP\Files\NotFoundException;
use OCP\Files\Storage\IStorage;
use OCP\IUser;
use OCP\Constant;
use OCP\Constants;

class VersionsBackend implements IVersionBackend {
/** @var Folder */
Expand Down Expand Up @@ -157,7 +157,7 @@ public function getVersionFile(IUser $user, FileInfo $sourceFile, $revision): Fi
*/
public function getAllVersionedFiles(array $folder) {
$versionsFolder = $this->getVersionsFolder($folder['id']);
$mount = $this->mountProvider->getMount($folder['id'], '/dummyuser/files/' . $folder['mount_point'], Constant::PERMISSION_ALL, $folder['quota']);
$mount = $this->mountProvider->getMount($folder['id'], '/dummyuser/files/' . $folder['mount_point'], Constants::PERMISSION_ALL, $folder['quota']);
try {
$contents = $versionsFolder->getDirectoryListing();
} catch (NotFoundException $e) {
Expand Down

0 comments on commit 1095224

Please sign in to comment.