BackupManager: Use internal path to get contents

Signed-off-by: Marcel Klehr <mklehr@gmx.net>
This commit is contained in:
Marcel Klehr 2022-03-25 15:45:41 +01:00
parent a719c24d5d
commit 98d1284b5d
1 changed files with 1 additions and 2 deletions

View File

@ -17,7 +17,6 @@ use OCP\IConfig;
use OCP\IL10N;
class BackupManager {
public const COMMENT = '<-- Created by Nextcloud Bookmarks -->';
/**
@ -172,7 +171,7 @@ class BackupManager {
if ($matchingDays || $matchingWeeks || $matchingMonths) {
continue;
}
if (!($contents = $node->getStorage()->file_get_contents($node->getPath()))) {
if (!($contents = $node->getStorage()->file_get_contents($node->getInternalPath()))) {
continue;
}
if (!str_contains($contents, self::COMMENT)) {