Fix logo filename to avoid W3 validator error
This commit is contained in:
parent
5abddff1aa
commit
17ddd0343d
1 changed files with 1 additions and 1 deletions
|
@ -43,7 +43,7 @@ if ($fileMimeType!==false) {
|
|||
// Final filename
|
||||
$filename = 'logo.'.$fileExtension;
|
||||
if (Text::isNotEmpty( $site->title() )) {
|
||||
$filename = $site->title().'.'.$fileExtension;
|
||||
$filename = preg_replace('/[^A-Za-z0-9-]+/', '-', $site->title()).'.'.$fileExtension;
|
||||
}
|
||||
|
||||
// Delete old image
|
||||
|
|
Loading…
Add table
Reference in a new issue