aboutsummaryrefslogtreecommitdiffstats
path: root/lib/private
diff options
context:
space:
mode:
authorJulius Härtl <jus@bitgrid.net>2021-01-29 09:40:46 +0100
committerJulius Härtl <jus@bitgrid.net>2021-01-29 09:40:46 +0100
commit222d8e6c1a57cbc322e3df36ffedbee70721e1f7 (patch)
treed2e201f8bb780dd629351b4d8dc1535910fb1b35 /lib/private
parent0d384dedaa42093c7181e39d580a8fcf25ebb143 (diff)
downloadnextcloud-server-222d8e6c1a57cbc322e3df36ffedbee70721e1f7.tar.gz
nextcloud-server-222d8e6c1a57cbc322e3df36ffedbee70721e1f7.zip
Use proper path for scanner
Signed-off-by: Julius Härtl <jus@bitgrid.net>
Diffstat (limited to 'lib/private')
-rw-r--r--lib/private/Files/Template/TemplateManager.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/private/Files/Template/TemplateManager.php b/lib/private/Files/Template/TemplateManager.php
index d06fb68b4d9..491d66d53e9 100644
--- a/lib/private/Files/Template/TemplateManager.php
+++ b/lib/private/Files/Template/TemplateManager.php
@@ -308,7 +308,7 @@ class TemplateManager implements ITemplateManager {
$localizedSkeletonTemplatePath = $this->getLocalizedTemplatePath($skeletonTemplatePath, $userLang);
if (!empty($localizedSkeletonTemplatePath) && file_exists($localizedSkeletonTemplatePath)) {
\OC_Util::copyr($localizedSkeletonTemplatePath, $folder);
- $userFolder->getStorage()->getScanner()->scan($userTemplatePath, Scanner::SCAN_RECURSIVE);
+ $userFolder->getStorage()->getScanner()->scan($folder->getInternalPath(), Scanner::SCAN_RECURSIVE);
$this->setTemplatePath($userTemplatePath);
return $userTemplatePath;
}
@@ -318,7 +318,7 @@ class TemplateManager implements ITemplateManager {
$localizedSkeletonPath = $this->getLocalizedTemplatePath($skeletonPath . '/Templates', $userLang);
if (!empty($localizedSkeletonPath) && file_exists($localizedSkeletonPath)) {
\OC_Util::copyr($localizedSkeletonPath, $folder);
- $userFolder->getStorage()->getScanner()->scan($userTemplatePath, Scanner::SCAN_RECURSIVE);
+ $userFolder->getStorage()->getScanner()->scan($folder->getInternalPath(), Scanner::SCAN_RECURSIVE);
$this->setTemplatePath($userTemplatePath);
return $userTemplatePath;
}