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; }