category: Remove reference to appbrowse.php, fix variable naming
This commit is contained in:
committed by
Alexander Nicolaysen Sørnes
parent
55e325dc80
commit
6b9332ab2f
@@ -241,37 +241,37 @@ class Category {
|
|||||||
/**
|
/**
|
||||||
* create the Category: line at the top of appdb pages$
|
* create the Category: line at the top of appdb pages$
|
||||||
*/
|
*/
|
||||||
function make_cat_path($path, $appId = '', $versionId = '')
|
function make_cat_path($aPath, $iAppId = '', $iVersionId = '')
|
||||||
{
|
{
|
||||||
$str = "";
|
$sStr = "";
|
||||||
$catCount = 0;
|
$iCatCount = 0;
|
||||||
while(list($iCatIdx, list($iCatId, $name)) = each($path))
|
while(list($iCatIdx, list($iCatId, $sName)) = each($aPath))
|
||||||
{
|
{
|
||||||
if($name == "ROOT")
|
if($sName == "ROOT")
|
||||||
$catname = "Main";
|
$sCatname = "Main";
|
||||||
else
|
else
|
||||||
$catname = $name;
|
$sCatname = $sName;
|
||||||
|
|
||||||
if ($catCount > 0) $str .= " > ";
|
if ($iCatCount > 0) $sStr .= " > ";
|
||||||
$str .= html_ahref($catname,"appbrowse.php?catId=$iCatId");
|
$sStr .= html_ahref($sCatname,"objectManager.php?sClass=category&iId=$iCatId&sAction=view&sTitle=Browse+Applications");
|
||||||
$catCount++;
|
$iCatCount++;
|
||||||
}
|
}
|
||||||
|
|
||||||
if(!empty($appId))
|
if($iAppId)
|
||||||
{
|
{
|
||||||
$oApp = new Application($appId);
|
$oApp = new Application($iAppId);
|
||||||
if(!empty($versionId))
|
if($iVersionId)
|
||||||
{
|
{
|
||||||
$oVersion = new Version($versionId);
|
$oVersion = new Version($iVersionId);
|
||||||
$str .= " > ".$oApp->objectMakeLink();
|
$sStr .= " > ".$oApp->objectMakeLink();
|
||||||
$str .= " > ".$oVersion->sName;
|
$sStr .= " > ".$oVersion->sName;
|
||||||
} else
|
} else
|
||||||
{
|
{
|
||||||
$str .= " > ".$oApp->sName;
|
$sStr .= " > ".$oApp->sName;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
return $str;
|
return $sStr;
|
||||||
}
|
}
|
||||||
|
|
||||||
public function objectGetState()
|
public function objectGetState()
|
||||||
|
|||||||
Reference in New Issue
Block a user