From 8480be8529246a2086e0a82482d2aae770b74d86 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli Date: Mon, 11 Nov 2024 11:54:50 +1300 Subject: [PATCH] API Update code to reflect changes in silverstripe/cms --- lang/en.yml | 1 + src/ErrorPage.php | 2 +- 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/lang/en.yml b/lang/en.yml index 4532366..650ad90 100644 --- a/lang/en.yml +++ b/lang/en.yml @@ -1,5 +1,6 @@ en: SilverStripe\ErrorPage\ErrorPage: + CLASS_DESCRIPTION: 'Custom content for different error cases (e.g. "Page not found")' CODE: 'Error code' CODE_400: '400 - Bad Request' CODE_401: '401 - Unauthorized' diff --git a/src/ErrorPage.php b/src/ErrorPage.php index 7242f28..8000137 100644 --- a/src/ErrorPage.php +++ b/src/ErrorPage.php @@ -60,7 +60,7 @@ class ErrorPage extends Page private static $allowed_children = []; - private static $description = 'Custom content for different error cases (e.g. "Page not found")'; + private static $class_description = 'Custom content for different error cases (e.g. "Page not found")'; private static $icon_class = 'font-icon-p-error';