Skip to content

Commit

Permalink
Merge pull request Novik#994 from Micdu70/master
Browse files Browse the repository at this point in the history
Fix "private" flag when creating .torrent file
  • Loading branch information
Novik committed Jan 16, 2015
2 parents 9f0f89d + e03520e commit bc1ca8a
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 2 deletions.
4 changes: 3 additions & 1 deletion plugins/create/correct.php
Original file line number Diff line number Diff line change
Expand Up @@ -64,8 +64,10 @@
if(strlen($comment))
$torrent->comment($comment);
}
if(isset($request['private']))
if($request['private'])
{
$torrent->is_private(true);
}
$fname = rTask::formatPath($taskNo)."/result.torrent";
$torrent->save($fname);

Expand Down
4 changes: 3 additions & 1 deletion plugins/create/createtorrent.php
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,10 @@
if(strlen($comment))
$torrent->comment($comment);
}
if(isset($request['private']))
if($request['private'])
{
$torrent->is_private(true);
}
$fname = rTask::formatPath($taskNo).'/result.torrent';
$torrent->save($fname);

Expand Down

0 comments on commit bc1ca8a

Please sign in to comment.