Skip to content

Commit

Permalink
Revert "Revert "Fixes #22""
Browse files Browse the repository at this point in the history
This reverts commit c7a8c83.
  • Loading branch information
mathetos committed Oct 13, 2017
1 parent c7a8c83 commit 73d10ad
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions views/send-system-info.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,23 +39,23 @@
function ssi_display_tab_content() {
ob_start();
echo '<div id="template">';
$tab = ( !empty($_GET["tab"]) ? $_GET["tab"] : 'send-as-text' );

$path = SSI_VIEWS_DIR . 'send-as-text-page.php';

if($_GET["tab"] == "send-as-text") {
if( $tab == "send-as-text") {

$path = apply_filters( 'ssi_send_as_text_page_path', $path );

include( $path );
}
elseif($_GET["tab"] == "send-as-email") { ?>
elseif( $tab == "send-as-email") { ?>
<?php Send_System_Info_Email::email_form_section() ?>
<?php
}
elseif($_GET["tab"] == "send-as-url") { ?>
elseif( $tab == "send-as-url") { ?>
<?php Send_System_Info_Viewer::remote_viewing_section() ?>
<?php
} else {
include( $path );
}
echo '</div>';
$output = ob_get_clean();
Expand Down

0 comments on commit 73d10ad

Please sign in to comment.