mirror of
https://gitee.com/zoujingli/ThinkAdmin.git
synced 2025-04-05 19:41:44 +08:00
Update Config.php
This commit is contained in:
parent
590d1c8ba7
commit
30dd80b7dc
@ -71,7 +71,7 @@ class Config extends Controller
|
||||
SystemService::instance()->setRuntime(null, [$xpath => 'admin']);
|
||||
}
|
||||
// 修改网站 ICON 图标文件
|
||||
if (($icon = $this->request->post('site_icon'))) {
|
||||
if (($icon = $this->request->post('site_icon')) && preg_match('#^https?://#', $icon)) {
|
||||
if (($info = LocalStorage::down($icon)) && !empty($info['file'])) try {
|
||||
$favicon = new FaviconExtend($info['file']);
|
||||
$favicon->saveIco($this->app->getRootPath() . 'public/favicon.ico');
|
||||
|
Loading…
x
Reference in New Issue
Block a user