require lang_functions every page

This commit is contained in:
xiaomlove
2022-06-09 01:47:33 +08:00
parent dfc857061a
commit 11d906a869
4 changed files with 5 additions and 5 deletions
+1 -1
View File
@@ -18,8 +18,8 @@ ini_set('date.timezone', nexus_config('nexus.timezone'));
$Cache = new class_cache_redis(); //Load the caching class
$Cache->setLanguageFolderArray(get_langfolder_list());
require $rootpath . 'include/config.php';
require $rootpath . get_langfile_path("functions.php");
if (!isRunningInConsole() && !in_array(nexus()->getScript(), ['announce', 'scrape', 'torrentrss', 'download'])) {
require $rootpath . get_langfile_path("functions.php");
checkGuestVisit();
}