Skip to content

Commit a28fb0f

Browse files
committed
making sure i'm using the new format for the config
1 parent f2f01f5 commit a28fb0f

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/PatternLab/Faker/PatternLabListener.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ public function __construct() {
3131
$this->addListener("patternData.dataLoaded","fakeContent");
3232

3333
// set-up locale
34-
$locale = Config::getOption("faker.locale");
34+
$locale = Config::getOption("plugins.faker.locale");
3535
$locale = ($locale) ? $locale : "en_US";
3636
$this->locale = $locale;
3737

@@ -88,7 +88,7 @@ private function compareReplaceFaker($value) {
8888
*/
8989
public function fakeContent() {
9090

91-
if ((bool)Config::getOption("faker.on")) {
91+
if ((bool)Config::getOption("plugins.faker.enabled")) {
9292
$fakedContent = $this->recursiveWalk(Data::get());
9393
Data::replaceStore($fakedContent);
9494
}

0 commit comments

Comments
 (0)