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
|
// 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);
|
||||||
|
|
Loading…
Reference in New Issue