Use static methods instead, looks better

This commit is contained in:
slawkens
2026-02-27 15:25:06 +01:00
parent f975bd2f2a
commit 4ca79a1e85
5 changed files with 48 additions and 36 deletions

View File

@@ -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);
}
}