make_cat_path() make use of arguments instead of globals

This commit is contained in:
Paul van Schayck
2004-12-25 20:11:13 +00:00
committed by WineHQ
parent f5741ea108
commit 2c6592efbd
4 changed files with 14 additions and 13 deletions

View File

@@ -42,11 +42,11 @@ function get_screenshot_img($appId, $versionId)
}
function display_catpath($catId)
function display_catpath($catId, $appId, $versionId = '')
{
$cat = new Category($catId);
$catFullPath = make_cat_path($cat->getCategoryPath());
$catFullPath = make_cat_path($cat->getCategoryPath(),$appId, $versionId);
echo html_frame_start("",'98%','',2);
echo "<p><b>Category: ". $catFullPath ."</b><br>\n";
echo html_frame_end();
@@ -173,7 +173,7 @@ if($appId)
apidb_header("Search for bugs in Bugzila for - ".$data->appName);
//cat display
display_catpath($app->data->catId);
display_catpath($app->data->catId, $appId);
//set Vendor
$vendor = $app->getVendor();