This commit is contained in:
xl
2024-11-21 10:43:16 +08:00
parent 9775d16db5
commit 6ae7f5a721
+3
View File
@@ -83,6 +83,9 @@ class Scanner extends Component
{ {
try { try {
require_once "$path"; require_once "$path";
if (!isset($_SERVER['PWD'])) {
$_SERVER['PWD'] = APP_PATH;
}
$path = str_replace($_SERVER['PWD'], '', $path); $path = str_replace($_SERVER['PWD'], '', $path);
$path = str_replace('.php', '', $path); $path = str_replace('.php', '', $path);
$this->parseFile($path); $this->parseFile($path);