site logo with the sitename

This commit is contained in:
Diego Najar 2019-01-15 19:42:15 +01:00
parent cb92db72e9
commit 2c08ce5535

View File

@ -13,6 +13,9 @@ $fileExtension = pathinfo($_FILES['inputFile']['name'], PATHINFO_EXTENSION);
// Final filename
$filename = 'logo.'.$fileExtension;
if (Text::isNotEmpty( $site->title() )) {
$filename = $site->title().'.'.$fileExtension;
}
// Delete old image
$oldFilename = $site->logo(false);