Skip to content

Commit

Permalink
Update constant name
Browse files Browse the repository at this point in the history
  • Loading branch information
vishalkakadiya committed Jan 12, 2024
1 parent 236e329 commit cc93a3a
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion admin/class-nginx-helper-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

Expand Down
2 changes: 1 addition & 1 deletion admin/partials/nginx-helper-general-options.php
Original file line number Diff line number Diff line change
Expand Up @@ -556,7 +556,7 @@
<?php
if ( ! $nginx_helper_admin->is_nginx_log_enabled() ) {
printf(
'<pre>[<b>NOTE:</b> %1$s<br /><b>define( \'ENABLE_NGINX_HELPER_LOGS\', true )</b> %2$s <b>wp-config.php</b>]</pre>',
'<pre>[<b>NOTE:</b> %1$s<br /><b>define( \'NGINX_HELPER_LOG\', true )</b> %2$s <b>wp-config.php</b>]</pre>',
esc_html__( 'To activate the logging feature, you must define the constant', 'nginx-helper' ),
esc_html__( 'in your', 'nginx-helper' )
);
Expand Down

0 comments on commit cc93a3a

Please sign in to comment.