diff --git a/application/admin/controller/Config.php b/application/admin/controller/Config.php index e291e5557..f47c2061d 100644 --- a/application/admin/controller/Config.php +++ b/application/admin/controller/Config.php @@ -58,6 +58,12 @@ class Config extends BasicAdmin { * 文件存储配置 */ public function file() { + $alert = [ + 'type' => 'info', + 'title' => '操作提示', + 'content' => '文件引擎参数影响全局文件上传功能,请勿随意修改!' + ]; + $this->assign('alert', $alert); $this->title = '文件存储配置'; $this->index(); } diff --git a/application/admin/controller/Index.php b/application/admin/controller/Index.php index 9d4a34a02..0e7b63745 100644 --- a/application/admin/controller/Index.php +++ b/application/admin/controller/Index.php @@ -76,8 +76,8 @@ class Index extends BasicAdmin { 'title' => '安全提示', 'content' => '超级管理员默认密码未修改,建议马上修改!' ]; - $this->assign('title', '后台首页'); $this->assign('alert', $alert); + $this->assign('title', '后台首页'); } return view(); } diff --git a/application/extra/view/admin.content.html b/application/extra/view/admin.content.html index 232573b06..4f1be599e 100644 --- a/application/extra/view/admin.content.html +++ b/application/extra/view/admin.content.html @@ -11,7 +11,7 @@ {if isset($alert['title'])}
{$alert.title}
{/if} - {if isset($alert['content'])}{$alert.content}
{/if} + {if isset($alert['content'])}{$alert.content}
{/if} {/if} {block name="content"}