Skip to content

Commit e9a7e52

Browse files
committed
Fix acf.php
1 parent 439b08f commit e9a7e52

File tree

1 file changed

+7
-5
lines changed

1 file changed

+7
-5
lines changed

src/Providers/AcfComposerServiceProvider.php

Lines changed: 7 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -81,11 +81,13 @@ public function boot()
8181
}
8282

8383
public function create_acf_settings() {
84-
\FileManager::copy_file(
85-
__DIR__ . '/../../config/acf.php',
86-
$this->app->configPath('/'),
87-
'acf.php'
88-
);
84+
if ( ! file_exists( $this->app->configPath('acf.php') ) ) {
85+
\FileManager::copy_file(
86+
__DIR__ . '/../../config/acf.php',
87+
$this->app->configPath('/'),
88+
'acf.php'
89+
);
90+
}
8991
}
9092

9193
public function create_section_component() {

0 commit comments

Comments
 (0)