diff --git a/admin/class-nginx-helper-admin.php b/admin/class-nginx-helper-admin.php index af0ffcd..588b67e 100644 --- a/admin/class-nginx-helper-admin.php +++ b/admin/class-nginx-helper-admin.php @@ -359,7 +359,7 @@ public function is_nginx_log_enabled() { return true; } - if ( defined( 'ENABLE_NGINX_HELPER_LOGS' ) && true === ENABLE_NGINX_HELPER_LOGS ) { + if ( defined( 'NGINX_HELPER_LOG' ) && true === NGINX_HELPER_LOG ) { return true; } diff --git a/admin/partials/nginx-helper-general-options.php b/admin/partials/nginx-helper-general-options.php index c825d4a..d40b8bb 100644 --- a/admin/partials/nginx-helper-general-options.php +++ b/admin/partials/nginx-helper-general-options.php @@ -556,7 +556,7 @@ is_nginx_log_enabled() ) { printf( - '
[NOTE: %1$s', + '
define( \'ENABLE_NGINX_HELPER_LOGS\', true ) %2$s wp-config.php]
[NOTE: %1$s', esc_html__( 'To activate the logging feature, you must define the constant', 'nginx-helper' ), esc_html__( 'in your', 'nginx-helper' ) );
define( \'NGINX_HELPER_LOG\', true ) %2$s wp-config.php]