mirror of
https://github.com/lkddi/nexusphp.git
synced 2026-04-14 04:20:49 +08:00
reward bonus options configurable
This commit is contained in:
@@ -308,5 +308,14 @@ class Setting extends NexusModel
|
||||
return (int)self::get("bonus.min_size");
|
||||
}
|
||||
|
||||
public static function getBonusRewardOptions(): array
|
||||
{
|
||||
$result = self::get("torrent.reward_bonus_options");
|
||||
if (!empty($result)) {
|
||||
return preg_split('/[,,\s]+/', trim($result));
|
||||
}
|
||||
return Torrent::BONUS_REWARD_VALUES;
|
||||
}
|
||||
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user