mirror of
https://github.com/torrentpier/torrentpier
synced 2025-08-14 18:48:21 -07:00
Some improvements for ratio functionality (#1552)
* Some improvements for ratio functionality * Update usercp_viewprofile.tpl * Update functions.php * Update CHANGELOG.md
This commit is contained in:
parent
f4652a4123
commit
4a16ad2c51
6 changed files with 38 additions and 15 deletions
|
@ -90,7 +90,7 @@ switch ($mode) {
|
|||
break;
|
||||
|
||||
case 'null_ratio':
|
||||
if (!$bb_cfg['ratio_null_enabled']) {
|
||||
if (!$bb_cfg['ratio_null_enabled'] || !RATIO_ENABLED) {
|
||||
$this->ajax_die($lang['MODULE_OFF']);
|
||||
}
|
||||
if (empty($this->request['confirmed'])) {
|
||||
|
@ -123,6 +123,10 @@ switch ($mode) {
|
|||
break;
|
||||
|
||||
case 'get_traf_stats':
|
||||
if (!RATIO_ENABLED) {
|
||||
$this->ajax_die($lang['MODULE_OFF']);
|
||||
}
|
||||
|
||||
$user_id = (int)$this->request['user_id'];
|
||||
$btu = get_bt_userdata($user_id);
|
||||
$profiledata = get_userdata($user_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue