From b7b85cd0619a853a415a43dd0c0bcb8b046c19d0 Mon Sep 17 00:00:00 2001 From: Adam Daley Date: Tue, 26 May 2026 19:19:29 +0100 Subject: [PATCH] Fix duplicate custom page slug exception constructor arguments (#3612) Fix Custompages exception argument order --- src/modules/Custompages/Service.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/modules/Custompages/Service.php b/src/modules/Custompages/Service.php index 290fb80c7..721a14359 100644 --- a/src/modules/Custompages/Service.php +++ b/src/modules/Custompages/Service.php @@ -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 = ?',