Clean up category class. Move category related functions into the class and remove now extranious

$catId parameter from category::display()
This commit is contained in:
Chris Morgan
2006-07-11 18:53:06 +00:00
committed by WineHQ
parent 457f7cc34b
commit 069a51fba8
5 changed files with 55 additions and 58 deletions

View File

@@ -624,7 +624,8 @@ class Version {
apidb_header("Viewing App- ".$oApp->sName." Version - ".$this->sName);
// cat
display_catpath($oApp->iCatId, $oApp->iAppId, $this->iVersionId);
$oCategory = new Category($oApp->iCatId);
$oCategory->display($oApp->iAppId, $this->iVersionId);
// set URL
$appLinkURL = ($oApp->sWebpage) ? "<a href=\"".$oApp->sWebpage."\">".substr(stripslashes($oApp->sWebpage),0,30)."</a>": "&nbsp;";