Skip to content

Commit 083b562

Browse files
committed
Expose folder
1 parent 0894881 commit 083b562

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

composer.json

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,11 @@
1818
"FullscreenInteractive\\SilverStripe\\": "src/"
1919
}
2020
},
21+
"extra": {
22+
"expose": [
23+
"client"
24+
]
25+
},
2126
"scripts": {
2227
"lint": "phpcs src/ tests/",
2328
"lint-clean": "phpcbf src/ tests/"

src/AddressFinderField.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -189,10 +189,10 @@ public function FieldHolder($properties = array())
189189
{
190190
Requirements::javascript('//api.addressfinder.io/assets/v3/widget.js');
191191

192-
if(Controller::curr()->hasMethod('ShowSwitchView')) {
192+
if (Controller::curr()->hasMethod('ShowSwitchView')) {
193193
// leftandmain check. If admin then use entwine.
194194
} else {
195-
if(Config::inst()->get(AddressFinderField::class, 'include_address_finder_js')) {
195+
if (Config::inst()->get(AddressFinderField::class, 'include_address_finder_js')) {
196196
Requirements::javascript('fullscreeninteractive/silverstripe-addressfinder:client/javascript/addressfinder.js');
197197
}
198198
}
@@ -390,7 +390,7 @@ public function validate($validator)
390390
return false;
391391
}
392392

393-
if($this->requireLatLngManual) {
393+
if ($this->requireLatLngManual) {
394394
$lat = $fields->dataFieldByName("{$name}[Latitude]");
395395

396396
if (!$lat->Value()) {

0 commit comments

Comments
 (0)