Fix screenshot display by using the image class member functions instead of class internal private variables
This commit is contained in:
@@ -410,14 +410,14 @@ function get_thumbnail($id)
|
|||||||
// set img tag
|
// set img tag
|
||||||
$imgSRC = '<img src="'.apidb_fullurl("appimage.php").
|
$imgSRC = '<img src="'.apidb_fullurl("appimage.php").
|
||||||
'?thumbnail=true&id='.$id.'" alt="'.$oScreenshot->sDescription.
|
'?thumbnail=true&id='.$id.'" alt="'.$oScreenshot->sDescription.
|
||||||
'" width="'.$oScreenshot->oThumbnailImage->width.
|
'" width="'.$oScreenshot->oThumbnailImage->get_width().
|
||||||
'" height="'.$oScreenshot->oThumbnailImage->height.'">';
|
'" height="'.$oScreenshot->oThumbnailImage->get_height().'">';
|
||||||
$img = '<a href="'.apidb_fullurl("appimage.php").
|
$img = '<a href="'.apidb_fullurl("appimage.php").
|
||||||
'?id='.$id.
|
'?id='.$id.
|
||||||
'" onclick="javascript:openWin(\''.apidb_fullurl("appimage.php").
|
'" onclick="javascript:openWin(\''.apidb_fullurl("appimage.php").
|
||||||
'?id='.$id.'\',\''.$randName.'\','.
|
'?id='.$id.'\',\''.$randName.'\','.
|
||||||
$oScreenshot->oScreenshotImage->width.','.
|
($oScreenshot->oScreenshotImage->get_width() + 20).','.
|
||||||
($oScreenshot->oScreenshotImage->height+4).
|
($oScreenshot->oScreenshotImage->get_height() + 6).
|
||||||
');return false;">'.$imgSRC.'</a>';
|
');return false;">'.$imgSRC.'</a>';
|
||||||
|
|
||||||
// set image link based on user pref
|
// set image link based on user pref
|
||||||
|
|||||||
Reference in New Issue
Block a user