From 6410d92f3ef9e8a78f1ca8b38e61b43b3c83c7ac Mon Sep 17 00:00:00 2001 From: Benjamin Brahmer Date: Thu, 11 Apr 2019 12:59:05 +0200 Subject: Use nextclouds temp dir (#493) --- lib/AppInfo/Application.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'lib/AppInfo') diff --git a/lib/AppInfo/Application.php b/lib/AppInfo/Application.php index 518a5bd2f..abacdfc3a 100644 --- a/lib/AppInfo/Application.php +++ b/lib/AppInfo/Application.php @@ -27,6 +27,7 @@ use OCP\IContainer; use OCP\INavigationManager; use OCP\IURLGenerator; use OCP\IConfig; +use OCP\ITempManager; use OCP\AppFramework\App; use OCP\Files\IRootFolder; use OCP\Files\Node; @@ -174,7 +175,8 @@ class Application extends App $container->registerService(Favicon::class, function (IContainer $c): Favicon { $favicon = new Favicon(); - $settings = ['dir' => sys_get_temp_dir()]; + $tempManager = $c->query(ITempManager::class); + $settings = ['dir' => $tempManager->getTempBaseDir()]; $favicon->cache($settings); return $favicon; }); -- cgit v1.2.3