site logo with the sitename

This commit is contained in:
Diego Najar 2019-01-15 19:42:15 +01:00
parent cb92db72e9
commit 2c08ce5535
1 changed files with 3 additions and 0 deletions

View File

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