make_cat_path() make use of arguments instead of globals
This commit is contained in:
@@ -93,11 +93,11 @@ function get_screenshot_img($appId, $versionId="")
|
||||
/**
|
||||
* TODO: what does it do ?
|
||||
*/
|
||||
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();
|
||||
@@ -275,7 +275,7 @@ if($appId && !$versionId)
|
||||
apidb_header("Viewing App - ".$data->appName);
|
||||
|
||||
// cat display
|
||||
display_catpath($app->data->catId);
|
||||
display_catpath($app->data->catId, $appId);
|
||||
|
||||
// set Vendor
|
||||
$vendor = $app->getVendor();
|
||||
@@ -449,7 +449,7 @@ else if($appId && $versionId)
|
||||
apidb_header("Viewing App Version - ".$data->appName);
|
||||
|
||||
// cat
|
||||
display_catpath($app->data->catId);
|
||||
display_catpath($app->data->catId, $appId, $versionId);
|
||||
|
||||
// set URL
|
||||
$appLinkURL = ($ver->webPage) ? "<a href='$ver->webPage'>".substr(stripslashes($ver->webPage),0,30)."</a>": " ";
|
||||
|
||||
Reference in New Issue
Block a user