mirror of https://gitee.com/karson/fastadmin.git
parent
7b66d0bf58
commit
e76eba0c21
|
|
@ -319,8 +319,8 @@ class Addon extends Backend
|
||||||
{
|
{
|
||||||
$offset = (int)$this->request->get("offset");
|
$offset = (int)$this->request->get("offset");
|
||||||
$limit = (int)$this->request->get("limit");
|
$limit = (int)$this->request->get("limit");
|
||||||
$filter = $this->request->get("filter") ?? '';
|
$filter = $this->request->get("filter", '');
|
||||||
$search = $this->request->get("search") ?? '';
|
$search = $this->request->get("search", '');
|
||||||
$search = htmlspecialchars(strip_tags($search));
|
$search = htmlspecialchars(strip_tags($search));
|
||||||
$onlineaddons = $this->getAddonList();
|
$onlineaddons = $this->getAddonList();
|
||||||
$filter = (array)json_decode($filter, true);
|
$filter = (array)json_decode($filter, true);
|
||||||
|
|
|
||||||
|
|
@ -63,7 +63,7 @@ class Common
|
||||||
}
|
}
|
||||||
// 切换多语言
|
// 切换多语言
|
||||||
if (Config::get('lang_switch_on')) {
|
if (Config::get('lang_switch_on')) {
|
||||||
$lang = $request->get('lang');
|
$lang = $request->get('lang', '');
|
||||||
if (preg_match("/^([a-zA-Z\-_]{2,10})\$/i", $lang)) {
|
if (preg_match("/^([a-zA-Z\-_]{2,10})\$/i", $lang)) {
|
||||||
\think\Cookie::set('think_var', $lang);
|
\think\Cookie::set('think_var', $lang);
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue