From 2cf30a9f62b1b984fc6a1d448758434a50bcadcf Mon Sep 17 00:00:00 2001 From: BJRambo Date: Wed, 2 Jan 2019 15:55:23 +0900 Subject: [PATCH] =?UTF-8?q?=EC=82=BC=ED=95=AD=EC=8B=9D=EC=9C=BC=EB=A1=9C?= =?UTF-8?q?=20=EC=A1=B0=EA=B1=B4=EB=AC=B8=20=EB=B3=80=EA=B2=BD?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- addons/photoswipe/photoswipe.addon.php | 10 ++-------- 1 file changed, 2 insertions(+), 8 deletions(-) diff --git a/addons/photoswipe/photoswipe.addon.php b/addons/photoswipe/photoswipe.addon.php index fcacfbcc6..87ebe03ed 100644 --- a/addons/photoswipe/photoswipe.addon.php +++ b/addons/photoswipe/photoswipe.addon.php @@ -21,14 +21,8 @@ if($called_position == 'after_module_proc' && Context::getResponseMethod() == "H Context::loadFile(array('./addons/photoswipe/rx_photoswipe.js', 'body', '', null), true); $footer = FileHandler::readFile('./addons/photoswipe/PhotoSwipe/pswp.html'); - if(isset($addon_info->display_name)) - { - $style_display = ""; - } - else - { - $style_display = ''; - } + + $style_display = isset($addon_info->display_name) ? "" : ''; Context::addHtmlFooter($style_display . $footer); }