svn: /pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/ Category.tpl.php

[email protected] (Michael Gauthier)
Newsgroups php.pear.cvs,php.pear.core
Message-ID <[email protected]>
gauthierm                                Tue, 22 Jun 2010 20:58:21 +0000

Revision: http://svn.php.net/viewvc?view=revision&revision=300677

Log:
Use newest release for package details on category page.

Changed paths:
    U   pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Category.tpl.php

Modified: pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Category.tpl.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Category.tpl.php	2010-06-22 20:42:23 UTC (rev 300676)
+++ pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Category.tpl.php	2010-06-22 20:58:21 UTC (rev 300677)
@@ -18,6 +18,27 @@
 <?php

 foreach ($context as $key => $package) {
+
+    $package->figureOutBestVersion(
+        new \PEAR2\Pyrus\PackageFile\v2\Dependencies\Package(
+            'required',
+            'package',
+            null,
+            array(
+                'name'              => $package->name,
+                'channel'           => 'pear2.php.net',
+                'uri'               => null,
+                'min'               => null,
+                'max'               => null,
+                'recommended'       => null,
+                'exclude'           => null,
+                'providesextension' => null,
+                'conflicts'         => null
+            ),
+            0
+        )
+    );
+
     $packageTitle = str_replace('PEAR2_', '', $package->name);
     $packageHref  = PEAR2\SimpleChannelFrontend\Main::getURL()
         . $package->name;
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.