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

[email protected] (Brett Bieber)
Newsgroups php.pear.cvs,php.pear.core
Message-ID <[email protected]>
saltybeagle                              Thu, 17 Jun 2010 14:50:16 +0000

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

Log:
If there are required packages, show the list.

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

Modified: pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Package.tpl.php
===================================================================
--- pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Package.tpl.php	2010-06-17 14:48:28 UTC (rev 300523)
+++ pear2/sandbox/pear2.php.net/trunk/www/templates/pear2/html/Package.tpl.php	2010-06-17 14:50:16 UTC (rev 300524)
@@ -108,8 +108,7 @@
     </div>

 <?php
-$dependencies = $context->dependencies['required']->package;
-if (count($dependencies) > 0):
+if (count($context->dependencies['required']->package) > 0):
 ?>
     <div class="package-dependencies">
         <h3>Dependencies for <?php echo $context->name; ?></h3>
@@ -117,7 +116,7 @@

 <?php

-foreach ($dependencies as $name => $package) {
+foreach ($context->dependencies['required']->package as $name => $package) {
     echo '<li><a href="http://'.$name.'">' . $name . '</a></li>';
 }
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.