Center the screenshot image so it is centered with respect to the text that may appear below it.

This commit is contained in:
Chris Morgan
2005-06-23 02:28:07 +00:00
committed by WineHQ
parent 437280be5f
commit b601cfef5c

View File

@@ -321,11 +321,11 @@ function get_screenshot_img($iAppId = null, $iVersionId = null)
} }
if(!$hResult || !mysql_num_rows($hResult)) if(!$hResult || !mysql_num_rows($hResult))
{ {
$sImgFile = '<img src="'.BASE.'images/no_screenshot.png" alt="No Screenshot" />'; $sImgFile = '<center><img src="'.BASE.'images/no_screenshot.png" alt="No Screenshot" /></center>';
} else } else
{ {
$oRow = mysql_fetch_object($hResult); $oRow = mysql_fetch_object($hResult);
$sImgFile = '<img src="appimage.php?thumbnail=true&amp;id='.$oRow->id.'" alt="'.$oRow->description.'" />'; $sImgFile = '<center><img src="appimage.php?thumbnail=true&amp;id='.$oRow->id.'" alt="'.$oRow->description.'" /></center>';
} }
$sImg = html_frame_start("",'128','',2); $sImg = html_frame_start("",'128','',2);