Refactor method pluginDIr

This commit is contained in:
joyqi
2021-09-02 17:55:41 +08:00
parent 4791cd978e
commit 7068b2bbe1
18 changed files with 226 additions and 209 deletions
+2 -1
View File
@@ -1,4 +1,5 @@
<?php
include 'common.php';
$panel = $request->get('panel');
@@ -10,4 +11,4 @@ if (!isset($panelTable['file']) || !in_array(urlencode($panel), $panelTable['fil
[$pluginName, $file] = explode('/', trim($panel, '/'), 2);
require_once $options->pluginDir($pluginName) . '/' . $panel;
require_once $options->pluginDir($pluginName) . '/' . $file;