Skip to content

Commit

Permalink
Use nextclouds temp dir (#493)
Browse files Browse the repository at this point in the history
  • Loading branch information
Grotax authored Apr 11, 2019
1 parent bcd1fd7 commit 6410d92
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion lib/AppInfo/Application.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@
use OCP\INavigationManager;
use OCP\IURLGenerator;
use OCP\IConfig;
use OCP\ITempManager;
use OCP\AppFramework\App;
use OCP\Files\IRootFolder;
use OCP\Files\Node;
Expand Down Expand Up @@ -174,7 +175,8 @@ public function __construct(array $urlParams = [])

$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;
});
Expand Down

0 comments on commit 6410d92

Please sign in to comment.