Skip to content

Commit

Permalink
Fix Extra admin alert panel - it doesn't work with ajax
Browse files Browse the repository at this point in the history
  • Loading branch information
xmacan committed Aug 26, 2019
1 parent fcfea68 commit 1c627d7
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
1 change: 0 additions & 1 deletion display.php
Original file line number Diff line number Diff line change
Expand Up @@ -234,7 +234,6 @@ function display_information() {
// extra admin panel
if (strlen(read_config_option('intropage_admin_alert')) > 3) {
$tmp['data'] = nl2br(read_config_option('intropage_admin_alert'));

intropage_display_panel(998, 'red', 'Admin alert', $tmp);
}
// end of admin panel
Expand Down
8 changes: 5 additions & 3 deletions intropage_ajax.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,9 +89,11 @@ function array_column($array,$column_name) {
</script>
<?php
// end ofchange panel color or ena/disa detail


} else {
}
elseif (get_request_var('reload_panel') == 998) { // exception for admin alert panel
print nl2br(read_config_option('intropage_admin_alert'));
}
else {
echo 'Panel not found';
}
}

0 comments on commit 1c627d7

Please sign in to comment.