Skip to content

Commit

Permalink
small fix for preview mode
Browse files Browse the repository at this point in the history
  • Loading branch information
wcz-txp committed Sep 11, 2019
1 parent 545cd02 commit 5bc6fda
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion wcz_telegram.php
Original file line number Diff line number Diff line change
Expand Up @@ -38,9 +38,10 @@ function wcz_telegram() {

$article_id = empty($GLOBALS['ID']) ? gps('ID') : $GLOBALS['ID'];
$Status = empty($GLOBALS['Status']) ? gps('Status') : $GLOBALS['Status'];
$view = empty($GLOBALS['view']) ? gps('view') : $GLOBALS['view'];
$wcz_telegram__this = empty($GLOBALS['wcz_telegram__this']) ? gps('wcz_telegram__this') : $GLOBALS['wcz_telegram__this'];

if ($Status == 4 and $wcz_telegram__this == 1)
if ($Status == 4 and $wcz_telegram__this == 1 and $view != "html" and $view != "preview")
{


Expand Down

0 comments on commit 5bc6fda

Please sign in to comment.