From abc3259222c9f584329ee790fa00317cbfbcb527 Mon Sep 17 00:00:00 2001 From: Marcin Kurczewski Date: Thu, 9 Oct 2014 21:44:18 +0200 Subject: [PATCH] Fixed avatars for anonymous users --- src/Controllers/UserAvatarController.php | 2 +- src/Dao/FileDao.php | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Controllers/UserAvatarController.php b/src/Controllers/UserAvatarController.php index 01808cf8..b4d1fc42 100644 --- a/src/Controllers/UserAvatarController.php +++ b/src/Controllers/UserAvatarController.php @@ -78,7 +78,7 @@ final class UserAvatarController extends AbstractController private function serveBlankFile($size) { - $this->serveFromFile($this->fileDao->getFullPath($this->getBlankAvatarSourceContentPath()), $size); + $this->serveFromFile($this->getBlankAvatarSourceContentPath(), $size); } private function getBlankAvatarSourceContentPath() diff --git a/src/Dao/FileDao.php b/src/Dao/FileDao.php index ff800e4c..e0828098 100644 --- a/src/Dao/FileDao.php +++ b/src/Dao/FileDao.php @@ -46,7 +46,7 @@ class FileDao implements IFileDao private function createFolders($fileName) { - $fullPath = $this->getFullPath(dirname($fileName)); + $fullPath = dirname($this->getFullPath($fileName)); if (!file_exists($fullPath)) mkdir($fullPath, 0777, true); }