Module: appdb Branch: master Commit: 6b9332ab2fdee89c7e873622f2c63b0f9e346c87 URL: http://source.winehq.org/git/appdb.git/?a=commit;h=6b9332ab2fdee89c7e873622f...
Author: Alexander Nicolaysen Sørnes <alexander@linux-xqqm.(none)> Date: Wed Aug 5 20:29:40 2009 +0200
category: Remove reference to appbrowse.php, fix variable naming
---
include/category.php | 36 ++++++++++++++++++------------------ 1 files 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()