mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-18 11:43:26 +02:00
Avoid globals where possible
$logged => logged() $account_logged => accountLogged()
This commit is contained in:
@@ -854,9 +854,8 @@ class OTS_Player extends OTS_Row_DAO
|
||||
}
|
||||
|
||||
if(isset($this->data['promotion'])) {
|
||||
global $config;
|
||||
if((int)$this->data['promotion'] > 0)
|
||||
return ($this->data['vocation'] + ($this->data['promotion'] * $config['vocations_amount']));
|
||||
return ($this->data['vocation'] + ($this->data['promotion'] * config('vocations_amount')));
|
||||
}
|
||||
|
||||
return $this->data['vocation'];
|
||||
|
Reference in New Issue
Block a user