From ebade0ce2deaedf82f73fbbb2c33df5b25b091a0 Mon Sep 17 00:00:00 2001 From: Chris Morgan Date: Thu, 23 Jun 2005 00:30:20 +0000 Subject: [PATCH] Fix screenshot link text, it wasn't fixed correctly with the last change --- include/screenshot.php | 13 ++++++++----- 1 file changed, 8 insertions(+), 5 deletions(-) diff --git a/include/screenshot.php b/include/screenshot.php index bf3752e..03357dc 100644 --- a/include/screenshot.php +++ b/include/screenshot.php @@ -329,15 +329,18 @@ function get_screenshot_img($iAppId = null, $iVersionId = null) } $sImg = html_frame_start("",'128','',2); + + /* we have screenshots */ if(mysql_num_rows($hResult)) { - /* if we are displaying a screenshot for a particular version, display text to indicate that */ - /* the user may click to submit a screenshot */ if($iVersionId) - $sImg .= "$sImgFile
Submit Screenshot
"; + $sImg .= "$sImgFile
View/Submit Screenshot
"; else - $sImg .= "$sImgFile"; - } else // no link for adding app screenshot as screenshots are linked to versions + $sImg .= "$sImgFile
View Screenshot
"; + } else if($iVersionId) /* we are asking for a specific app version but it has no screenshots */ + { + $sImg .= "$sImgFile
Submit Screenshot
"; + } else /* we have no screenshots and we aren't a specific version, we don't allow adding screenshots for an app */ { $sImg .= $sImgFile; }