We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 439b08f commit e9a7e52Copy full SHA for e9a7e52
src/Providers/AcfComposerServiceProvider.php
@@ -81,11 +81,13 @@ public function boot()
81
}
82
83
public function create_acf_settings() {
84
- \FileManager::copy_file(
85
- __DIR__ . '/../../config/acf.php',
86
- $this->app->configPath('/'),
87
- 'acf.php'
88
- );
+ if ( ! file_exists( $this->app->configPath('acf.php') ) ) {
+ \FileManager::copy_file(
+ __DIR__ . '/../../config/acf.php',
+ $this->app->configPath('/'),
+ 'acf.php'
89
+ );
90
+ }
91
92
93
public function create_section_component() {
0 commit comments