summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-07-27 17:56:28 +0200
committerRemi Collet <fedora@famillecollet.com>2014-07-27 17:56:28 +0200
commit55d9cf592c48e2829296bc8889cd8c72c779b4e2 (patch)
treecc705596288d2f3a8ce0f9f1a4f6ac280c10fbc4
parent54774535fd7e067722a2cacc87faf30214ab9f5e (diff)
add report for Composer libraries
-rw-r--r--rpm.php5
-rw-r--r--smarty/templates/rpmphp/index.tpl3
2 files changed, 6 insertions, 2 deletions
diff --git a/rpm.php b/rpm.php
index b456554..88de40d 100644
--- a/rpm.php
+++ b/rpm.php
@@ -38,7 +38,9 @@ require 'include/main.php';
$what=(isset($_GET["what"]) ? $_GET["what"] : "%fedora");
$type=(isset($_GET["type"]) ? $_GET["type"] : "pecl");
-
+if (!in_array($type, array('composer', 'pecl', 'pear', 'R'))) {
+ $type = 'pecl';
+}
$ariane[] = array(
'url' => '#',
'text' => strtoupper($type). ' extensions in Fedora'
@@ -246,6 +248,7 @@ try {
case "pecl":
$filter = 'php-pecl-%';
break;
+ case "composer":
case "pear":
$filter = 'php-%';
break;
diff --git a/smarty/templates/rpmphp/index.tpl b/smarty/templates/rpmphp/index.tpl
index 8b73af7..046af55 100644
--- a/smarty/templates/rpmphp/index.tpl
+++ b/smarty/templates/rpmphp/index.tpl
@@ -20,8 +20,9 @@
*}
<h2>Package reports</h2>
<ul id="reports">
+ <li><a href="rpm.php?type=composer">COMPOSER Libraries in Fedora</a> with upstream information</li>
<li><a href="rpm.php?type=pecl">PECL Extensions in Fedora</a> with upstream information</li>
- <li><a href="rpm.php?type=pear">PEAR Extensions in Fedora</a> with upstream information</li>
+ <li><a href="rpm.php?type=pear">PEAR Libraries in Fedora</a> with upstream information</li>
<li><a href="rpm.php?type=R">R Extensions in Fedora</a> with upstream information</li>
<li><a href="all.php">All Packages in Fedora</a></li>
</ul><!-- /reports -->