site logo with the sitename
This commit is contained in:
parent
cb92db72e9
commit
2c08ce5535
|
@ -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);
|
||||
|
|
Loading…
Reference in New Issue