Skip to content

Commit

Permalink
Merge pull request #129 from nextcloud/fix/121/ignore-default-apps-fo…
Browse files Browse the repository at this point in the history
…lder

ignoring default apps folder when working on custom_apps
  • Loading branch information
artonge authored Dec 29, 2021
2 parents cb6a69a + 571f71d commit 069fe25
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion lib/Service/PointService.php
Original file line number Diff line number Diff line change
Expand Up @@ -475,7 +475,12 @@ private function addCustomApps(RestoringPoint $point): void {
continue;
}

$name = 'apps-' . str_replace('/', '', $this->get('url', $app) . '-' . $this->uuid(8));
$customUrl = str_replace('/', '', $this->get('url', $app));
if ($this->get('path', $app) === OC::$SERVERROOT . '/apps' && $customUrl === 'apps') {
continue;
}

$name = 'apps-' . $customUrl . '-' . $this->uuid(8);
$path = ltrim($this->get('path', $app), '/');
$point->addRestoringData(new RestoringData(RestoringData::ROOT_DISK, $path, $name));
}
Expand Down

0 comments on commit 069fe25

Please sign in to comment.