From 4b7608ec2e225099d8c415bc039546ef7cb06eef Mon Sep 17 00:00:00 2001 From: HWFord <54360213+HWFord@users.noreply.github.com> Date: Thu, 20 Feb 2025 12:30:58 +0100 Subject: [PATCH] (cp 36c889b33) fixes #698 change condition to add meta tag --- picture.php | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/picture.php b/picture.php index d10c70509..c28d6da89 100644 --- a/picture.php +++ b/picture.php @@ -606,7 +606,7 @@ $metadata_showable = trigger_change( $picture['current'] ); -if ( $metadata_showable and pwg_get_session_var('show_metadata') ) +if ( isset($_GET['metadata']) ) { $page['meta_robots']=array('noindex'=>1, 'nofollow'=>1); } @@ -676,12 +676,10 @@ SELECT * $format['filesize'] = sprintf('%.1fMB', $format['filesize']/1024); } - $template->append('current', array('formats' => $formats), true); } } - if ($page['slideshow']) { $tpl_slideshow = array();