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 d169987 commit 3609d14Copy full SHA for 3609d14
resources/views/components/favicon-extension.blade.php
@@ -1,14 +1,18 @@
1
<?php
2
3
-function localIcon($id) {
4
- $directory = base_path("assets/favicon/icons");
5
- $files = scandir($directory);
6
- $pathinfo = "error.error";
7
- foreach($files as $file) {
8
- if (strpos($file, $id.'.') !== false) {
9
- $pathinfo = $id. "." . pathinfo($file, PATHINFO_EXTENSION);
10
- }}
11
- return $pathinfo;
+if (!function_exists('localIcon')) {
+ function localIcon($id)
+ {
+ $directory = base_path("assets/favicon/icons");
+ $files = scandir($directory);
+ $pathinfo = "error.error";
+ foreach ($files as $file) {
+ if (strpos($file, $id . '.') !== false) {
+ $pathinfo = $id . "." . pathinfo($file, PATHINFO_EXTENSION);
12
+ }
13
14
+ return $pathinfo;
15
16
}
17
18
?>
0 commit comments