fix: scrape.php

This commit is contained in:
xiaomlove
2021-02-28 23:55:05 +08:00
parent 268be895e9
commit fae1fb9ebe
2 changed files with 9 additions and 3 deletions

View File

@@ -27,7 +27,7 @@ require $rootpath . 'vendor/autoload.php';
require $rootpath . 'nexus/Database/helpers.php';
require $rootpath . 'classes/class_cache_redis.php';
require $rootpath . 'include/config.php';
if (!IS_ANNOUNCE) {
if (!in_array(CURRENT_SCRIPT, ['announce', 'scrape'])) {
require $rootpath . get_langfile_path("functions.php");
checkGuestVisit();
}