From 6b9332ab2fdee89c7e873622f2c63b0f9e346c87 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Alexander=20Nicolaysen=20S=C3=B8rnes?= Date: Wed, 5 Aug 2009 20:29:40 +0200 Subject: [PATCH] category: Remove reference to appbrowse.php, fix variable naming --- include/category.php | 36 ++++++++++++++++++------------------ 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/include/category.php b/include/category.php index 76eccc5..45b8010 100644 --- a/include/category.php +++ b/include/category.php @@ -241,37 +241,37 @@ class Category { /** * 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 = ""; - $catCount = 0; - while(list($iCatIdx, list($iCatId, $name)) = each($path)) + $sStr = ""; + $iCatCount = 0; + while(list($iCatIdx, list($iCatId, $sName)) = each($aPath)) { - if($name == "ROOT") - $catname = "Main"; + if($sName == "ROOT") + $sCatname = "Main"; else - $catname = $name; + $sCatname = $sName; - if ($catCount > 0) $str .= " > "; - $str .= html_ahref($catname,"appbrowse.php?catId=$iCatId"); - $catCount++; + if ($iCatCount > 0) $sStr .= " > "; + $sStr .= html_ahref($sCatname,"objectManager.php?sClass=category&iId=$iCatId&sAction=view&sTitle=Browse+Applications"); + $iCatCount++; } - if(!empty($appId)) + if($iAppId) { - $oApp = new Application($appId); - if(!empty($versionId)) + $oApp = new Application($iAppId); + if($iVersionId) { - $oVersion = new Version($versionId); - $str .= " > ".$oApp->objectMakeLink(); - $str .= " > ".$oVersion->sName; + $oVersion = new Version($iVersionId); + $sStr .= " > ".$oApp->objectMakeLink(); + $sStr .= " > ".$oVersion->sName; } else { - $str .= " > ".$oApp->sName; + $sStr .= " > ".$oApp->sName; } } - return $str; + return $sStr; } public function objectGetState()