Skip to content

Commit 775e5be

Browse files
committed
Remove all external dependencies
1 parent 16b4d65 commit 775e5be

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

resources/views/components/favicon.blade.php

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2356,12 +2356,13 @@ function loadFile()
23562356

23572357
<?php
23582358
function getFavIcon($url) {
2359+
try {
23592360
$urlICO = $url . "/favicon.ico";
23602361
$urlICO = str_replace("//favicon.ico","/favicon.ico",$urlICO);
23612362
23622363
$dom = new simple_html_dom();
23632364
$dom->load(file_get_contents($url));
2364-
$favicon = '';
2365+
$favicon = url('littlelink/icons/website.svg');
23652366
23662367
23672368
if(!function_exists('get_headers'))
@@ -2420,7 +2421,7 @@ function get_headers($url,$format=0)
24202421
}
24212422
24222423
}
2423-
2424+
} catch (exception $e) {$favicon = url('littlelink/icons/website.svg');}
24242425
return $favicon;
24252426
}
24262427

0 commit comments

Comments
 (0)