File tree Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Expand file tree Collapse file tree 3 files changed +7
-3
lines changed Original file line number Diff line number Diff line change @@ -60,7 +60,7 @@ class Index extends Component
60
60
public function mount ()
61
61
{
62
62
if (isInstanceAdmin ()) {
63
- $ this ->settings = InstanceSettings:: get ();
63
+ $ this ->settings = instanceSettings ();
64
64
$ this ->do_not_track = $ this ->settings ->do_not_track ;
65
65
$ this ->is_auto_update_enabled = $ this ->settings ->is_auto_update_enabled ;
66
66
$ this ->is_registration_enabled = $ this ->settings ->is_registration_enabled ;
Original file line number Diff line number Diff line change @@ -89,12 +89,12 @@ public function getTitleDisplayName(): string
89
89
public function helperVersion (): Attribute
90
90
{
91
91
return Attribute::make (
92
- get: function () {
92
+ get: function ($ value ) {
93
93
if (isDev ()) {
94
94
return 'latest ' ;
95
95
}
96
96
97
- return $ this -> helper_version ;
97
+ return $ value ;
98
98
}
99
99
);
100
100
}
Original file line number Diff line number Diff line change @@ -3893,3 +3893,7 @@ function convertComposeEnvironmentToArray($environment)
3893
3893
return $ convertedServiceVariables ;
3894
3894
3895
3895
}
3896
+ function instanceSettings ()
3897
+ {
3898
+ return InstanceSettings::get ();
3899
+ }
You can’t perform that action at this time.
0 commit comments