screenshot: Use accessor instead of modifying OM property directly

This commit is contained in:
Alexander Nicolaysen Sørnes
2007-09-29 20:18:16 +02:00
committed by Chris Morgan
parent 05070e6a3a
commit 3e2029a354

View File

@@ -108,7 +108,7 @@ if($hResult && query_num_rows($hResult))
) )
{ {
$oM = new objectManager("screenshot"); $oM = new objectManager("screenshot");
$oM->sReturnTo = "screenshots.php?iAppId=".$oScreenshot->iAppId."&iVersionId=".$oScreenshot->iVersionId; $oM->setReturnTo("screenshots.php?iAppId=".$oScreenshot->iAppId."&iVersionId=".$oScreenshot->iVersionId);
echo '<br />[<a href="'.$oM->makeUrl("delete", $oScreenshot->iScreenshotId, "Delete Screenshot").'">Delete</a>]'; echo '<br />[<a href="'.$oM->makeUrl("delete", $oScreenshot->iScreenshotId, "Delete Screenshot").'">Delete</a>]';
} }