Skip to content

Commit

Permalink
Fix. Error from tests php
Browse files Browse the repository at this point in the history
  • Loading branch information
AntonV1211 committed Jul 3, 2024
1 parent c28d11d commit 5cd2922
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 14 deletions.
4 changes: 2 additions & 2 deletions inc/spbc-admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -1093,7 +1093,7 @@ function spbc_dashboard_statistics_widget_output($_post, $_callback_args)
<div class='spbc_widget_top_links'>
<img src="<?php echo Escape::escUrl(SPBC_PATH . '/images/preloader.gif'); ?>" class='spbc_preloader'>
<?php

if ($spbc->data['display_scanner_warnings']['critical'] > 0) {
echo (spbc__get_accordion_tab_info_block_html('critical-for-widget'));
}
Expand All @@ -1109,7 +1109,7 @@ function spbc_dashboard_statistics_widget_output($_post, $_callback_args)
__("%sConfigure%s", 'security-malware-firewall'),
"<a href='{$spbc->settings_link}' class='spbc_widget_settings_link'>",
"</a>"
);
);
echo '</div>';
?>
</div>
Expand Down
19 changes: 7 additions & 12 deletions inc/spbc-settings.php
Original file line number Diff line number Diff line change
Expand Up @@ -1333,11 +1333,10 @@ function spbc_settings__draw_elements($elems_to_draw = null, $direct_call = fals
case 'section_banner':
if ($spbc->data['display_scanner_warnings']['critical'] > 0) {
echo '<div class="spbc_tab_fields_group">'
. '<div class="spbc_group_header"></div>';

if ($spbc->data['display_scanner_warnings']['critical'] > 0) {
echo spbct_admin_notice('found_critical_files');
}
. '<div class="spbc_group_header"></div>';
if ($spbc->data['display_scanner_warnings']['critical'] > 0) {
echo spbct_admin_notice('found_critical_files');
}
echo '</div>';
}
break;
Expand Down Expand Up @@ -2239,7 +2238,7 @@ function spbc_field_security_logs()
global $spbc;

echo '<div class="spbc_wrapper_field">';

/**
* Check if tab is restricted by license, layout according HTML if so.
*/
Expand Down Expand Up @@ -2425,11 +2424,7 @@ function spbct_admin_notice($flag_text_banner)
case 'found_critical_files':
$email = spbc_get_admin_email();
$website = get_home_url();

$text = __("There's a high probability that your website has been compromised,
as critical files show signs of infection. Take action now by ordering malware
removal from our experienced security specialists.",
'security-malware-firewall');
$text = __("There's a high probability that your website has been compromised, as critical files show signs of infection. Take action now by ordering malware removal from our experienced security specialists.", 'security-malware-firewall');

//generate button
$landing_page_link = 'https://l.cleantalk.org/website-malware-removal?email=' . esc_attr($email) . '&website=' . esc_attr($website);
Expand All @@ -2444,7 +2439,7 @@ function spbct_admin_notice($flag_text_banner)
$button_div .= '</div>';
$text .= $button_div;
break;

default:
$text = false;
break;
Expand Down

0 comments on commit 5cd2922

Please sign in to comment.