Skip to content
This repository was archived by the owner on Jan 25, 2022. It is now read-only.

Commit ef4fdea

Browse files
committed
Fixed bug in wp-config.php that stopped local config file from being generated.
1 parent 682c388 commit ef4fdea

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

www/wp-config.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,9 +24,9 @@
2424
: $hostname
2525
);
2626

27-
define( 'BOX_LOCAL_CONFIG', __DIR__ . '/wp-config-' . BOX_HOST . '.php' );
28-
if ( isset( $_ENV[ 'WPLIB_BOX' ] ) && ! is_file( BOX_LOCAL_CONFIG ) ) {
29-
file_put_contents( BOX_LOCAL_CONFIG, "<?php\n#\n# Local configuration for {$hostname}\n#\n" );
27+
define( 'BOX_LOCAL_CONFIG', '/wp-config-' . BOX_HOST . '.php' );
28+
if ( isset( $_ENV[ 'WPLIB_BOX' ] ) && ! is_file( dirname( __FILE__ ) . BOX_LOCAL_CONFIG ) ) {
29+
file_put_contents( dirname( __FILE__ ) . BOX_LOCAL_CONFIG, "<?php\n#\n# Local configuration for {$hostname}\n#\n" );
3030
}
3131
unset( $hostname );
3232

0 commit comments

Comments
 (0)