Fixed avatars for anonymous users
This commit is contained in:
parent
6afd60feba
commit
abc3259222
2 changed files with 2 additions and 2 deletions
|
@ -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()
|
||||
|
|
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue