From edacb37c79ab2155fa7754c87c92dff53c58d221 Mon Sep 17 00:00:00 2001 From: Abdulrahman Date: Fri, 18 Jan 2019 23:31:49 +0300 Subject: [PATCH] fixes --- do.php | 14 +++++++++----- 1 file changed, 9 insertions(+), 5 deletions(-) diff --git a/do.php b/do.php index 5f2ee24..eeaff3c 100755 --- a/do.php +++ b/do.php @@ -135,16 +135,20 @@ if (ig('id') || ig('filename')) kleeja_err($lang['FILE_NO_FOUNDED']); } + $show_style = true; + is_array($plugin_run_result = Plugins::getInstance()->run('b4_showsty_downlaod_id_filename', get_defined_vars())) ? extract($plugin_run_result) : null; //run hook //add http reffer to session to prevent errors with some browsers ! $_SESSION['HTTP_REFERER'] = $file_info['id']; - - // show style ... - Saaheader($title); - echo $tpl->display($sty); - Saafooter(); + // show style + if($show_style) + { + Saaheader($title); + echo $tpl->display($sty); + Saafooter(); + } }