Jeremy Newman : set plural
Jeremy Newman
jnewman at wine.codeweavers.com
Tue Mar 22 15:27:00 CDT 2016
Module: appdb
Branch: master
Commit: 779db21a87786cb2840226015bfdfeecb7f51399
URL: http://source.winehq.org/git/appdb.git/?a=commit;h=779db21a87786cb2840226015bfdfeecb7f51399
Author: Jeremy Newman <jnewman at codeweavers.com>
Date: Tue Mar 22 15:26:46 2016 -0500
set plural
---
include/screenshot.php | 4 ++--
1 file changed, 2 insertions(+), 2 deletions(-)
diff --git a/include/screenshot.php b/include/screenshot.php
index adb0658..692da89 100644
--- a/include/screenshot.php
+++ b/include/screenshot.php
@@ -534,12 +534,12 @@ class screenshot
$sZoomIcon = Screenshot::get_zoomicon_overlay();
/* we have screenshots */
- if($hResult && query_num_rows($hResult))
+ if($hResult && $numShots = query_num_rows($hResult))
{
if($iVersionId)
$sImg .= "<div class=\"imgarea\"><a href='screenshots.php?iAppId=$iAppId&iVersionId=$iVersionId'>".$sImgFile.$sZoomIcon."<br>View/Submit Screenshot</a></div>";
else
- $sImg .= "<div class=\"imgarea\"><a href='screenshots.php?iAppId=$iAppId&iVersionId=$iVersionId'>".$sImgFile.$sZoomIcon."<br>View Screenshot</a></div>";
+ $sImg .= "<div class=\"imgarea\"><a href='screenshots.php?iAppId=$iAppId&iVersionId=$iVersionId'>".$sImgFile.$sZoomIcon."<br>View Screenshot".($numShots > 1 ? "s" : "")."</a></div>";
} else if($iVersionId) /* we are asking for a specific app version but it has no screenshots */
{
$sImg .= "<div class=\"imgarea\"><a href='screenshots.php?iAppId=$iAppId&iVersionId=$iVersionId'>".$sImgFile.$sZoomIcon."<br>Submit Screenshot</a></div>";
More information about the wine-cvs
mailing list