mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-06 03:58:04 +08:00
Update Config.php
This commit is contained in:
parent
62d5037f4e
commit
24ba7a3289
@ -84,8 +84,8 @@ class Config extends Controller
|
|||||||
SystemService::setRuntime(null, [$post['xpath'] => 'admin']);
|
SystemService::setRuntime(null, [$post['xpath'] => 'admin']);
|
||||||
}
|
}
|
||||||
// 修改网站 ICON 图标,替换 public/favicon.ico
|
// 修改网站 ICON 图标,替换 public/favicon.ico
|
||||||
if (preg_match('#^https?://#', $icon = $post['site_icon'] ?? '')) try {
|
if (preg_match('#^https?://#', $post['site_icon'] ?? '')) try {
|
||||||
SystemService::setFavicon($icon);
|
SystemService::setFavicon($post['site_icon'] ?? '');
|
||||||
} catch (\Exception $exception) {
|
} catch (\Exception $exception) {
|
||||||
trace_file($exception);
|
trace_file($exception);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user