Don't use pagination for groups list page

This commit is contained in:
DariusIII
2018-05-23 12:45:00 +02:00
parent 8155336859
commit 9539e1beef
3 changed files with 6 additions and 7 deletions
+1
View File
@@ -1,4 +1,5 @@
2018-05-23 DariusIII
* Chg: Don't use pagination for groups list page
* Fix: Fix Admin/AnidbController edit function
* Fix: Fix anidb-edit link
* Fix: Fix typo that lead to bad anidb rss feed
@@ -12,7 +12,7 @@ class BrowseGroupController extends BasePageController
public function show()
{
$this->setPrefs();
$groupList = Group::getGroupsRange(false, false, '', true);
$groupList = Group::getGroupsRange( '', true);
$this->smarty->assign('results', $groupList);
$meta_title = 'Browse Groups';
+4 -6
View File
@@ -231,12 +231,10 @@ class Group extends Model
}
/**
* Gets all groups.
*
*
* @param string $groupname
* @param null $active
* @return \Illuminate\Contracts\Pagination\LengthAwarePaginator
* @param null $active
*
* @return \Illuminate\Database\Eloquent\Builder[]|\Illuminate\Database\Eloquent\Collection
*/
public static function getGroupsRange($groupname = '', $active = null)
{
@@ -252,7 +250,7 @@ class Group extends Model
$groups->where('active', '=', 0);
}
return $groups->paginate(config('nntmux.items_per_page'));
return $groups->get();
}
/**