mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-24 03:57:22 +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);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user