diff --git a/include/category.php b/include/category.php index 6156d1a..9da5af1 100644 --- a/include/category.php +++ b/include/category.php @@ -258,7 +258,7 @@ class Category { /** * create the Category: line at the top of appdb pages$ */ - function make_cat_path($aPath, $iAppId = '', $iVersionId = '') + function make_cat_path($aPath, $iAppId = '', $iVersionId = '', $iqSysId = '') { $sStr = ""; $iCatCount = 0; @@ -287,6 +287,14 @@ class Category { $sStr .= " > ".$oApp->sName; } } + + // QEMU + + if($iqSysId) + { + $oqSys = new qemuSystem($iqSysId); + $sStr .= " (".$oqSys->sDescription.")"; + } return $sStr; } @@ -405,9 +413,9 @@ class Category { /** * display the full path of the Category we are looking at */ - function displayPath($appId, $versionId = '') + function displayPath($appId, $versionId = '', $qsysId = '') { - $sCatFullPath = Category::make_cat_path($this->getCategoryPath(), $appId, $versionId); + $sCatFullPath = Category::make_cat_path($this->getCategoryPath(), $appId, $versionId, $qsysId); echo html_frame_start("",'98%','',2); echo "
Category: ". $sCatFullPath ."
\n";
echo html_frame_end();
diff --git a/include/version.php b/include/version.php
index 6a6a242..60ea45c 100644
--- a/include/version.php
+++ b/include/version.php
@@ -251,14 +251,18 @@ class version {
}
}
+ // QEMU
if($this->iqsysId && ($this->iqsysId!=$oVersion->iqsysId))
{
+ $oqSysBefore = new qemuSystem($oVersion->iqsysId);
+ $oqSysAfter = new qemuSystem($this->iqsysId);
+
if(!query_parameters("UPDATE appVersion SET qsysId = '?' WHERE versionId = '?'",
$this->iqsysId, $this->iVersionId))
return FALSE;
- $sWhatChanged .= "System was changed from $oVersion->iqsysId to ".
- "$this->iqsysId.\n\n";
+ $sWhatChanged .= "System was changed from $oqSysBefore->sDescription to ".
+ "$oqSysAfter->sDescription.\n\n";
}
if($this->objectGetState() != $oVersion->objectGetState())
@@ -866,7 +870,7 @@ class version {
// cat
$oCategory = new Category($oApp->iCatId);
- $oCategory->displayPath($oApp->iAppId, $this->iVersionId);
+ $oCategory->displayPath($oApp->iAppId, $this->iVersionId, $this->iqsysId);
// set URL
$appLinkURL = ($oApp->sWebpage) ? trimmed_link($oApp->sWebpage,30) : " ";
@@ -926,9 +930,13 @@ class version {
}
// rating Area
- echo "