fix: Слеши
This commit is contained in:
parent
2edd65d145
commit
9d730c2961
1 changed files with 1 additions and 1 deletions
|
|
@ -202,7 +202,7 @@ class Login extends Filter
|
||||||
$module = $request->get('module');
|
$module = $request->get('module');
|
||||||
$action = $request->get('action');
|
$action = $request->get('action');
|
||||||
|
|
||||||
$moduleDir = explode('_',$module)[0];
|
$moduleDir = explode('\\',$module)[0];
|
||||||
$file = Path::join($this->config->get('system', 'path'), 'modules', $moduleDir, 'filters', 'white.json');
|
$file = Path::join($this->config->get('system', 'path'), 'modules', $moduleDir, 'filters', 'white.json');
|
||||||
if (file_exists($file)) {
|
if (file_exists($file)) {
|
||||||
$whiteList = json_decode(file_get_contents($file), true);
|
$whiteList = json_decode(file_get_contents($file), true);
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue