plugin sticky promotion do not change torrent original field

This commit is contained in:
xiaomlove
2022-06-10 01:25:13 +08:00
parent d95979b579
commit 35f78b4b77
7 changed files with 35 additions and 14 deletions

View File

@@ -17,11 +17,11 @@ require $rootpath . 'include/eloquent.php';
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';
$script = nexus()->getScript();
if (!in_array($script, ['announce'])) {
if (!in_array($script, ['announce', 'scrape'])) {
require $rootpath . get_langfile_path("functions.php");
}
require $rootpath . 'include/config.php';
if (!isRunningInConsole() && !in_array($script, ['announce', 'scrape', 'torrentrss', 'download'])) {
checkGuestVisit();
}