Compact the top 'X' lists on the main page by adding a flag to get_screenshot_img() that disables the output of

html that was putting the image inside of another table
This commit is contained in:
Chris Morgan
2006-06-22 21:41:41 +00:00
committed by WineHQ
parent 2076ff9efc
commit b55c2776a5
2 changed files with 19 additions and 7 deletions

View File

@@ -266,12 +266,12 @@ function outputTopXRow($oRow)
{
$oVersion = new Version($oRow->versionId);
$oApp = new Application($oVersion->iAppId);
$img = get_screenshot_img(null, $oRow->versionId); // image
$img = get_screenshot_img(null, $oRow->versionId, false); // image, disable extra formatting
echo '
<tr class="white">
<td><a href="appview.php?versionId='.$oRow->versionId.'">'.$oApp->sName.' '.$oVersion->sName.'</a></td>
<td>'.trim_description($oApp->sDescription).'</td>
<td>'.$img.'</td>
<td><center>'.$img.'</center></td>
</tr>';
}