Skip to content

Commit

Permalink
Global items: librariesCount -> numLibraries
Browse files Browse the repository at this point in the history
  • Loading branch information
dstillman committed Jun 13, 2017
1 parent c1d9914 commit f05ab3b
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions controllers/GlobalItemsController.php
Original file line number Diff line number Diff line change
Expand Up @@ -53,6 +53,8 @@ public function globalItems() {
for ($i = 0, $len = sizeOf($result['data']); $i < $len; $i++) {
unset($result['data'][$i]['libraryItems']);
unset($result['data'][$i]['meta']['instanceCount']);
$result['data'][$i]['meta']['numLibraries'] = $result['data'][$i]['meta']['librariesCount'];
unset($result['data'][$i]['meta']['librariesCount']);
}

header('Content-Type: application/json');
Expand Down

0 comments on commit f05ab3b

Please sign in to comment.