diff --git a/bugs.php b/bugs.php
index 7a5afbb..09767d3 100644
--- a/bugs.php
+++ b/bugs.php
@@ -94,14 +94,10 @@ function display_versions($appId, $versions)
$bgcolor = (($c % 2) ? "color0" : "color1");
//format desc
- $desc = substr(stripslashes($ver->description),0,75);
+ $desc = trim_description($ver->description);
if(strlen($desc) == 75)
$desc .= " ...";
- //get ratings
- $r_win = rating_stars_for_version($ver->versionId, "windows");
- $r_fake = rating_stars_for_version($ver->versionId, "fake");
-
//count comments
$r_count = count_comments($appId,$ver->versionId);
@@ -133,70 +129,69 @@ if(!is_numeric($appId))
if($appId)
{
- $app = new Application($appId);
- $data = $app->data;
- if(!$data) {
+ $oApp = new Application($appId);
+ if(!$oApp->iAppId) {
// Oops! application not found or other error. do something
errorpage('Internal Database Access Error');
exit;
}
// header
- apidb_header("Search for bugs in Bugzila for - ".$data->appName);
+ apidb_header("Search for bugs in Bugzila for - ".$oApp->sName);
//cat display
- display_catpath($app->data->catId, $appId);
+ display_catpath($oApp->iCatId, $oApp->iAppId);
//set Vendor
- $vendor = $app->getVendor();
+ $oVendor = new Vendor($oApp->iVendorId);
//set URL
- $appLinkURL = ($data->webPage) ? "".substr(stripslashes($data->webPage),0,30)."": " ";
+ $appLinkURL = ($oApp->sWebPage) ? "".substr(stripslashes($oApp->sWebPage),0,30)."": " ";
//set Image
- $img = get_screenshot_img($appId, $versionId);
+ $img = get_screenshot_img($oApp->iAppId, $versionId);
//start display application
echo html_frame_start("","98%","",0);
echo '
| ',"\n";
echo ' | \n";
//Notes
- echo "Welcome ;
+ echo "";
echo html_frame_end("For more details and user comments, view the versions of this application.");
//display versions
- display_versions($appId,$app->getAppVersionList());
+ display_versions($oApp->iAppId,$oApp->aVersionsIds);
//display bundle
- display_bundle($appId);
+ display_bundle($oApp->iAppId);
}
else
|
|