mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-28 15:18:52 +08:00
seed bonus add log etc
This commit is contained in:
+2
-3
@@ -47,17 +47,16 @@ class Imdb
|
||||
|
||||
private function checkDir($dir, $langKeyPrefix)
|
||||
{
|
||||
global $lang_functions;
|
||||
if (!is_dir($dir)) {
|
||||
$mkdirResult = mkdir($dir, 0777, true);
|
||||
if ($mkdirResult !== true) {
|
||||
$msg = $lang_functions["{$langKeyPrefix}_can_not_create"];
|
||||
$msg = nexus_trans("torrent.{$langKeyPrefix}_can_not_create");
|
||||
do_log("$msg, dir: $dir");
|
||||
throw new ImdbException($msg);
|
||||
}
|
||||
}
|
||||
if (!is_writable($dir)) {
|
||||
$msg = $lang_functions["{$langKeyPrefix}_is_not_writeable"];
|
||||
$msg = nexus_trans("torrent.{$langKeyPrefix}_is_not_writeable");
|
||||
do_log("$msg, dir: $dir");
|
||||
throw new ImdbException($msg);
|
||||
}
|
||||
|
||||
@@ -376,6 +376,7 @@ class Update extends Install
|
||||
"enabled" => 1,
|
||||
"is_default" => 1,
|
||||
]);
|
||||
TrackerUrl::saveUrlCache();
|
||||
NexusDB::cache_del("nexus_plugin_store_all");
|
||||
}
|
||||
/**
|
||||
|
||||
Reference in New Issue
Block a user