File tree 2 files changed +4
-3
lines changed
2 files changed +4
-3
lines changed Original file line number Diff line number Diff line change @@ -32,9 +32,9 @@ public function __construct(
32
32
array $ data = []
33
33
)
34
34
{
35
+ parent ::__construct ($ context , $ data );
35
36
$ this ->configuration = $ configuration ;
36
37
$ this ->_helper = $ mediaHelper ;
37
- parent ::__construct ($ context , $ data );
38
38
}
39
39
40
40
/**
Original file line number Diff line number Diff line change @@ -43,8 +43,9 @@ public function __construct(
43
43
*/
44
44
public function getButtonData (): array
45
45
{
46
- $ cloudinaryMLwidgetOprions = json_decode ($ this ->images ->getCloudinaryMediaLibraryWidgetOptions (),true );
47
-
46
+ $ cloudinaryMLwidgetOprions = ($ this ->images ->getCloudinaryMediaLibraryWidgetOptions ())
47
+ ? json_decode ($ this ->images ->getCloudinaryMediaLibraryWidgetOptions (),true )
48
+ : null ;
48
49
49
50
$ buttonData = [
50
51
'label ' => __ ('Add From Cloudinary ' ),
You can’t perform that action at this time.
0 commit comments