From 58e8ae0759ccfa97c478ccae4e0778bdce70966f Mon Sep 17 00:00:00 2001
From: Jake Vanderwerf <get@jakevanderwerf.ca>
Date: Thu, 22 Jan 2026 22:40:02 +0000
Subject: [PATCH] =DirectoryManager.php updates, some javascript tweaks for CRUD.js, and minor style changes
---
inc/rest/routes/NotificationsRoutes.php | 24 ++++++++++++------------
1 files changed, 12 insertions(+), 12 deletions(-)
diff --git a/inc/rest/routes/NotificationsRoutes.php b/inc/rest/routes/NotificationsRoutes.php
index a6edcb1..eb39e8b 100644
--- a/inc/rest/routes/NotificationsRoutes.php
+++ b/inc/rest/routes/NotificationsRoutes.php
@@ -441,9 +441,9 @@
'total' => $total_count,
'page' => $offset,
'per_page' => $limit,
- 'pages' => ceil($total_count / $limit),
- 'has_more' => ($offset * $limit + count($notifications)) < $total_count
- ]
+ 'pages' => ceil($total_count / $limit)
+ ],
+ 'has_more' => ($offset * $limit + count($notifications)) < $total_count
];
// Cache the result
@@ -462,9 +462,9 @@
'total' => 0,
'page' => $offset,
'per_page' => $limit,
- 'pages' => 0,
- 'has_more' => false
- ]
+ 'pages' => 0
+ ],
+ 'has_more' => false
]);
}
}
@@ -835,9 +835,9 @@
'total' => (int)$total_count,
'page' => $offset,
'per_page' => $limit,
- 'pages' => ceil($total_count / $limit),
- 'has_more' => ($offset + $limit) < $total_count
- ]
+ 'pages' => ceil($total_count / $limit)
+ ],
+ 'has_more' => ($offset + $limit) < $total_count
];
// Cache the results
@@ -857,9 +857,9 @@
'total' => 0,
'page' => $offset,
'per_page' => $limit,
- 'pages' => 0,
- 'has_more' => false
- ]
+ 'pages' => 0
+ ],
+ 'has_more' => false
];
}
}
--
Gitblit v1.10.0