appdb/include screenshot.php

WineHQ wineowner at wine.codeweavers.com
Mon Jul 3 21:11:09 CDT 2006


ChangeSet ID:	26188
CVSROOT:	/opt/cvs-commit
Module name:	appdb
Changes by:	wineowner at winehq.org	2006/07/03 21:11:09

Modified files:
	include        : screenshot.php 

Log message:
	Tony Lambregts <tony.lambregts at gmail.com>
	Fix screenshot display by using the image class member functions instead of class internal private variables

Patch: http://cvs.winehq.org/patch.py?id=26188

Old revision  New revision  Changes     Path
 1.40          1.41          +4 -4       appdb/include/screenshot.php

Index: appdb/include/screenshot.php
diff -u -p appdb/include/screenshot.php:1.40 appdb/include/screenshot.php:1.41
--- appdb/include/screenshot.php:1.40	4 Jul 2006  2:11: 9 -0000
+++ appdb/include/screenshot.php	4 Jul 2006  2:11: 9 -0000
@@ -410,14 +410,14 @@ function get_thumbnail($id)
     // set img tag        
     $imgSRC  = '<img src="'.apidb_fullurl("appimage.php").
                '?thumbnail=true&id='.$id.'" alt="'.$oScreenshot->sDescription.
-               '" width="'.$oScreenshot->oThumbnailImage->width.
-               '" height="'.$oScreenshot->oThumbnailImage->height.'">';
+               '" width="'.$oScreenshot->oThumbnailImage->get_width().
+               '" height="'.$oScreenshot->oThumbnailImage->get_height().'">';
     $img = '<a href="'.apidb_fullurl("appimage.php").
            '?id='.$id.
            '" onclick="javascript:openWin(\''.apidb_fullurl("appimage.php").
            '?id='.$id.'\',\''.$randName.'\','.
-           $oScreenshot->oScreenshotImage->width.','.
-           ($oScreenshot->oScreenshotImage->height+4).
+           ($oScreenshot->oScreenshotImage->get_width() + 20).','.
+           ($oScreenshot->oScreenshotImage->get_height() + 6).
            ');return false;">'.$imgSRC.'</a>';
 
     // set image link based on user pref



More information about the wine-cvs mailing list