Remove logic that was preventing the opening of the version frame. The code to open the version
frame also determins if the user maintains the version or not, which decides whether we include the "Delete Image" link. Change fixes missing "Delete Image" link for maintainers.
This commit is contained in:
@@ -62,7 +62,7 @@ $oVersion = new Version($aClean['iVersionId']);
|
|||||||
|
|
||||||
if($hResult && query_num_rows($hResult))
|
if($hResult && query_num_rows($hResult))
|
||||||
{
|
{
|
||||||
echo html_frame_start("Screenshot Gallery for ".$oApp->sName." ".$oVersion->sName,500);
|
echo html_frame_start("Screenshot Gallery for ".$oApp->sName, 500);
|
||||||
|
|
||||||
// display thumbnails
|
// display thumbnails
|
||||||
$c = 1;
|
$c = 1;
|
||||||
@@ -77,7 +77,7 @@ if($hResult && query_num_rows($hResult))
|
|||||||
// if the current version changed then update the current version
|
// if the current version changed then update the current version
|
||||||
// and close the previous html frame if this isn't the
|
// and close the previous html frame if this isn't the
|
||||||
// first frame
|
// first frame
|
||||||
if(!$aClean['iVersionId'] && $oRow->versionId != $iCurrentVersionId)
|
if($oRow->versionId != $iCurrentVersionId)
|
||||||
{
|
{
|
||||||
if($iCurrentVersionId)
|
if($iCurrentVersionId)
|
||||||
{
|
{
|
||||||
@@ -93,6 +93,7 @@ if($hResult && query_num_rows($hResult))
|
|||||||
}
|
}
|
||||||
$oScreenshot = new Screenshot($oRow->id);
|
$oScreenshot = new Screenshot($oRow->id);
|
||||||
$img = $oScreenshot->get_thumbnail_img();
|
$img = $oScreenshot->get_thumbnail_img();
|
||||||
|
|
||||||
// display image
|
// display image
|
||||||
echo "<td>\n";
|
echo "<td>\n";
|
||||||
echo $img;
|
echo $img;
|
||||||
@@ -120,7 +121,8 @@ if($hResult && query_num_rows($hResult))
|
|||||||
|
|
||||||
echo html_frame_end(); // close the current version we are displaying
|
echo html_frame_end(); // close the current version we are displaying
|
||||||
echo html_frame_end(); // close the "Screenshot Gallary..." html frame
|
echo html_frame_end(); // close the "Screenshot Gallary..." html frame
|
||||||
} else {
|
} else
|
||||||
|
{
|
||||||
echo "<p align=\"center\">There are currently no screenshots for the selected version of this application.";
|
echo "<p align=\"center\">There are currently no screenshots for the selected version of this application.";
|
||||||
echo "<br />Please consider submitting a screenshot for the selected version yourself.</p>";
|
echo "<br />Please consider submitting a screenshot for the selected version yourself.</p>";
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user