mirror of
https://github.com/slawkens/myaac.git
synced 2025-10-17 19:23:27 +02:00
Replace with get('groups')
This commit is contained in:
@@ -34,7 +34,7 @@ if(isset($_REQUEST['redirect']))
|
||||
return;
|
||||
}
|
||||
|
||||
$groups = new OTS_Groups_List();
|
||||
$groups = app()->get('groups');
|
||||
|
||||
$freePremium = isset($config['lua']['freePremium']) && getBoolean($config['lua']['freePremium']) || $account_logged->getPremDays() == OTS_Account::GRATIS_PREMIUM_DAYS;
|
||||
$dayOrDays = $account_logged->getPremDays() == 1 ? 'day' : 'days';
|
||||
|
@@ -17,7 +17,7 @@ if(!$canEdit) {
|
||||
return;
|
||||
}
|
||||
|
||||
$groupsList = new OTS_Groups_List();
|
||||
$groupsList = app()->get('groups');
|
||||
$groups = [
|
||||
['id' => 0, 'name' => 'Guest'],
|
||||
];
|
||||
|
@@ -50,7 +50,7 @@ if(isset($posts[0]['player_id'])) {
|
||||
}
|
||||
|
||||
$lookaddons = $db->hasColumn('players', 'lookaddons');
|
||||
$groups = new OTS_Groups_List();
|
||||
$groups = app()->get('groups');
|
||||
foreach($posts as &$post) {
|
||||
$post['player'] = new OTS_Player();
|
||||
$player = $post['player'];
|
||||
|
@@ -14,7 +14,7 @@ $title = 'Support in game';
|
||||
if(setting('core.account_country'))
|
||||
require SYSTEM . 'countries.conf.php';
|
||||
|
||||
$groups = new OTS_Groups_List();
|
||||
$groups = app()->get('groups');
|
||||
if(!$groups->count())
|
||||
{
|
||||
echo 'Error while reading groups.xml';
|
||||
|
Reference in New Issue
Block a user