Fix duplicate custom page slug exception constructor arguments (#3612)

Fix Custompages exception argument order
This commit is contained in:
Adam Daley authored and GitHub committed 2026-05-26 19:19:29 +01:00
1 parent 66938a9529
commit b7b85cd061
1 file changed
+1 -1
+1 -1
View File
@@ -143,7 +143,7 @@ class Service
[$slug, $id]
)->fetchOne();
if ($exists) {
throw new \FOSSBilling\Exception('You need to set unique slug.', 9999);
throw new \FOSSBilling\Exception('You need to set unique slug.', null, 9999);
}
$this->di['dbal']->executeStatement(
'UPDATE custom_pages SET title = ?, description = ?, keywords = ?, content = ?, slug = ? WHERE id = ?',