mirror of
https://github.com/slawkens/myaac.git
synced 2026-03-16 16:03:31 +01:00
Use static methods instead, looks better
This commit is contained in:
@@ -47,8 +47,7 @@ class OTS_Groups_List implements IteratorAggregate, Countable
|
||||
return;
|
||||
}
|
||||
|
||||
$groups = new Groups();
|
||||
foreach($groups->getGroups() as $id => $info) {
|
||||
foreach(Groups::get() as $id => $info) {
|
||||
$this->groups[$id] = new OTS_Group($info);
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user