ChangeSet ID: 30893 CVSROOT: /opt/cvs-commit Module name: appdb Changes by: wineowner@winehq.org 2007/01/18 19:42:56
Modified files: include : application.php
Log message: Alexander Nicolaysen Sørnes alex@thehandofagony.com Display url links using url::display()
Patch: http://cvs.winehq.org/patch.py?id=30893
Old revision New revision Changes Path 1.86 1.87 +3 -12 appdb/include/application.php
Index: appdb/include/application.php diff -u -p appdb/include/application.php:1.86 appdb/include/application.php:1.87 --- appdb/include/application.php:1.86 19 Jan 2007 1:42:56 -0000 +++ appdb/include/application.php 19 Jan 2007 1:42:56 -0000 @@ -631,22 +631,13 @@ class Application { echo " <tr class="color1"><td><b>URL</b></td><td>".$appLinkURL."</td></tr>\n";
// optional links - $result = query_parameters("SELECT * FROM appData WHERE appId = '?' AND versionID = 0 AND type = 'url'", - $this->iAppId); - if($result && mysql_num_rows($result) > 0) - { - echo " <tr class="color1"><td> <b>Links</b></td><td>\n"; - while($oRow = mysql_fetch_object($result)) - { - echo " <a href='$oRow->url'>".substr(stripslashes($oRow->description),0,30)."</a> <br />\n"; - } - echo " </td></tr>\n"; - } + if($sUrls = url::display(NULL, $this->iAppId)) + echo $sUrls;
// image $img = Screenshot::get_random_screenshot_img($this->iAppId, null, false); echo "<tr><td align="center" colspan="2">$img</td></tr>\n"; - + echo " </table>\n"; /* close of name/vendor/bugs/url table */
echo " </td></tr>\n";