From 4f90766ba314171bbfc78d1e988307c50633e7f3 Mon Sep 17 00:00:00 2001 From: "John Molakvoæ (skjnldsv)" Date: Tue, 19 Jan 2021 16:38:51 +0100 Subject: Skip template picker if none available MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: John Molakvoæ (skjnldsv) --- lib/private/legacy/OC_Util.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'lib/private/legacy/OC_Util.php') diff --git a/lib/private/legacy/OC_Util.php b/lib/private/legacy/OC_Util.php index 05d54cf84e6..f1e88166e97 100644 --- a/lib/private/legacy/OC_Util.php +++ b/lib/private/legacy/OC_Util.php @@ -449,9 +449,9 @@ class OC_Util { // update the file cache $userDirectory->getStorage()->getScanner()->scan('', \OC\Files\Cache\Scanner::SCAN_RECURSIVE); - /** @var ITemplateManager $templateManaer */ - $templateManaer = \OC::$server->get(ITemplateManager::class); - $templateManaer->initializeTemplateDirectory(null, $userId); + /** @var ITemplateManager $templateManager */ + $templateManager = \OC::$server->get(ITemplateManager::class); + $templateManager->initializeTemplateDirectory(null, $userId); } } -- cgit v1.2.3