From 844462108ec4398cf176b174f54986e842611dc3 Mon Sep 17 00:00:00 2001 From: Damian Mooyman Date: Fri, 14 Jul 2017 14:45:08 +1200 Subject: [PATCH] Fix diff reference --- docs/en/04_Changelogs/4.0.0.md | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/docs/en/04_Changelogs/4.0.0.md b/docs/en/04_Changelogs/4.0.0.md index f1b29d5b6..259c82385 100644 --- a/docs/en/04_Changelogs/4.0.0.md +++ b/docs/en/04_Changelogs/4.0.0.md @@ -201,6 +201,7 @@ the `SilverStripe\Forms` namespace. If you have some class configuration statics defined and they aren't private, you may find that they don't register anymore. For example, this code, taken from the `silverstripe/tagfield` module will no longer work in SilverStripe 4.0. + ```php public static $allowed_actions = [ 'suggest' @@ -210,13 +211,9 @@ public static $allowed_actions = [ Changing the visibility to `private` (as per `RequestHandler::$allowed_actions` visibility) will make it 4.0 compatible. -```ss - -public static $allowed_actions = [ - 'suggest' -]; - -private static $allowed_actions = [ +```diff +-public static $allowed_actions = [ ++private static $allowed_actions = [ 'suggest' ]; ```