Update favicon.blade.php

This commit is contained in:
Julian Prieber 2022-11-29 22:13:59 +01:00
parent 5c4ae7b2dc
commit 8fb722f32d

View File

@ -2441,7 +2441,7 @@ try{
$header = $favicon;
$extension = pathinfo($header, PATHINFO_EXTENSION);
if(!file_exists(base_path("studio/favicon/icons")."/".$id.".".$extension)){
if($id.".".$extension !== ".".$id){file_put_contents(base_path("studio/favicon/icons")."/".$id.".".$extension, file_get_contents($header));}
if($id.".".$extension !== ".".$id){file_put_contents(base_path("studio/favicon/icons")."/".$id.".".$extension, file_get_contents($header,false,$context));}
}
} catch (exception $e) {}