forked from Public/pics
Management controllers: move table queries into models
This commit is contained in:
@@ -65,11 +65,10 @@ class ManageAlbums extends HTMLController
|
||||
'index_class' => 'col-md-6',
|
||||
'base_url' => BASEURL . '/managealbums/',
|
||||
'get_data' => function($offset, $limit, $order, $direction) {
|
||||
assert(in_array($order, ['id_tag', 'tag', 'slug', 'count']));
|
||||
return PhotoAlbum::getHierarchy($order, $direction);
|
||||
return Tag::getOffset($offset, $limit, $order, $direction, true);
|
||||
},
|
||||
'get_count' => function() {
|
||||
return 9999;
|
||||
return Tag::getCount(false, 'Album', true);
|
||||
}
|
||||
];
|
||||
|
||||
|
||||
Reference in New Issue
Block a user