Skip to content

Commit

Permalink
fix error in tests
Browse files Browse the repository at this point in the history
  • Loading branch information
alkymst committed Jun 19, 2018
1 parent 3e049a3 commit 7d116ef
Showing 1 changed file with 8 additions and 1 deletion.
9 changes: 8 additions & 1 deletion pkg/ddevapp/wordpress.go
Original file line number Diff line number Diff line change
Expand Up @@ -113,7 +113,7 @@ define( 'DB_COLLATE', '' );
/**
* WordPress Database Table prefix.
*/
if($table_prefix == null)
if(!isset($table_prefix))
$table_prefix = '{{ $config.TablePrefix }}';
/**
Expand Down Expand Up @@ -153,6 +153,9 @@ if ( !defined('NONCE_SALT') )
if ( !defined('WP_HOME') )
define('WP_HOME', '{{ $config.DeployURL }}');
/** WP_ENV */
define('WP_ENV', getenv('DDEV_ENV_NAME') ? getenv('DDEV_ENV_NAME') : 'production');
/* That's all, stop editing! Happy blogging. */
/** Absolute path to the WordPress directory. */
Expand Down Expand Up @@ -199,6 +202,10 @@ if (!defined('DB_HOST'))
/** site URL */
if ( !defined('WP_HOME') )
define('WP_HOME', '{{ $config.DeployURL }}');
/** WP_ENV */
define('WP_ENV', getenv('DDEV_ENV_NAME') ? getenv('DDEV_ENV_NAME') : 'production');
`
)

Expand Down

0 comments on commit 7d116ef

Please sign in to comment.