15 lines
310 B
PHP
15 lines
310 B
PHP
<?php
|
|
|
|
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);
|
|
}}
|
|
return $pathinfo;
|
|
}
|
|
|
|
?>
|