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"; - echo "\n"; - echo "\n"; + echo "\n"; + echo "\n"; echo "\n"; echo "
Name ".stripslashes($data->appName)."
App Id ".$data->appId."
Name ".$oApp->sName."
App Id ".$oApp->iAppId."
Vendor ". - " ".stripslashes($vendor->vendorName)."  \n"; + " ".$oVendor->sName."  \n"; echo "
All Bugs ". - " + " Look for All bugs in bugzilla  \n"; echo "
Open Bugs ". " + "&bug_status=UNCONFIRMED&bug_status=NEW&bug_status=ASSIGNED&bug_status=REOPENED&bug_file_loc_type=allwords&bug_file_loc=appdb ".$oApp->iAppId."'> Look for Open bugs in bugzilla  \n"; echo "
Submit a New Bug ". - " + " Submit a new bug in bugzilla  \n"; echo "
\n"; //Notes - echo "
Welcome
; + echo "
Welcome

This is the link between the Wine Application Database and Wine's Buzilla. From here you get search for bugs entered against this application. You can also enter new bugs if you log into Wine's Bugzilla.

The link between the Application Database and Bugzilla is based on the bug having the following URL - - ".APPDB_OWNER_URL."appview.php?appId=".$data->appId."   + + ".APPDB_OWNER_URL."appview.php?appId=".$oApp->iAppId."   in the bug's URL Field. If it is not entered, this search page can not find it.

"; 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