mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
Fix diff reference
This commit is contained in:
parent
75a6a188e4
commit
844462108e
@ -201,6 +201,7 @@ the `SilverStripe\Forms` namespace.
|
|||||||
If you have some class configuration statics defined and they aren't private,
|
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
|
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.
|
the `silverstripe/tagfield` module will no longer work in SilverStripe 4.0.
|
||||||
|
|
||||||
```php
|
```php
|
||||||
public static $allowed_actions = [
|
public static $allowed_actions = [
|
||||||
'suggest'
|
'suggest'
|
||||||
@ -210,13 +211,9 @@ public static $allowed_actions = [
|
|||||||
Changing the visibility to `private` (as per `RequestHandler::$allowed_actions`
|
Changing the visibility to `private` (as per `RequestHandler::$allowed_actions`
|
||||||
visibility) will make it 4.0 compatible.
|
visibility) will make it 4.0 compatible.
|
||||||
|
|
||||||
```ss
|
```diff
|
||||||
<!-- before -->
|
-public static $allowed_actions = [
|
||||||
public static $allowed_actions = [
|
+private static $allowed_actions = [
|
||||||
'suggest'
|
|
||||||
];
|
|
||||||
<!-- after -->
|
|
||||||
private static $allowed_actions = [
|
|
||||||
'suggest'
|
'suggest'
|
||||||
];
|
];
|
||||||
```
|
```
|
||||||
|
Loading…
Reference in New Issue
Block a user