Fixed avatars for anonymous users

This commit is contained in:
Marcin Kurczewski 2014-10-09 21:44:18 +02:00
parent 6afd60feba
commit abc3259222
2 changed files with 2 additions and 2 deletions

View file

@ -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()

View file

@ -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);
}