We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 16b4d65 commit 775e5beCopy full SHA for 775e5be
resources/views/components/favicon.blade.php
@@ -2356,12 +2356,13 @@ function loadFile()
2356
2357
<?php
2358
function getFavIcon($url) {
2359
+try {
2360
$urlICO = $url . "/favicon.ico";
2361
$urlICO = str_replace("//favicon.ico","/favicon.ico",$urlICO);
2362
2363
$dom = new simple_html_dom();
2364
$dom->load(file_get_contents($url));
-$favicon = '';
2365
+$favicon = url('littlelink/icons/website.svg');
2366
2367
2368
if(!function_exists('get_headers'))
@@ -2420,7 +2421,7 @@ function get_headers($url,$format=0)
2420
2421
}
2422
2423
-
2424
+} catch (exception $e) {$favicon = url('littlelink/icons/website.svg');}
2425
return $favicon;
2426
2427
0 commit comments