Skip to content

Commit 557cde8

Browse files
committed
Ensure $run_dir is defined
1 parent b4e030a commit 557cde8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/Context/FeatureContext.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -951,7 +951,6 @@ public function download_wp( $subdir = '' ) {
951951
if ( 'sqlite' === self::$db_type ) {
952952
self::copy_dir( self::$sqlite_cache_dir, $dest_dir . '/wp-content/plugins' );
953953
self::configure_sqlite( $dest_dir );
954-
955954
}
956955
}
957956

@@ -1012,10 +1011,11 @@ public function install_wp( $subdir = '' ) {
10121011
'skip-email' => true,
10131012
];
10141013

1014+
$run_dir = '' !== $subdir ? ( $this->variables['RUN_DIR'] . "/$subdir" ) : $this->variables['RUN_DIR'];
10151015
$install_cache_path = '';
1016+
10161017
if ( self::$install_cache_dir ) {
10171018
$install_cache_path = self::$install_cache_dir . '/install_' . md5( implode( ':', $install_args ) . ':subdir=' . $subdir );
1018-
$run_dir = '' !== $subdir ? ( $this->variables['RUN_DIR'] . "/$subdir" ) : $this->variables['RUN_DIR'];
10191019
}
10201020

10211021
if ( $install_cache_path && file_exists( $install_cache_path ) ) {

0 commit comments

Comments
 (0)