summaryrefslogtreecommitdiffstats
path: root/index.php
diff options
context:
space:
mode:
authorRemi Collet <fedora@famillecollet.com>2014-07-27 18:27:51 +0200
committerRemi Collet <fedora@famillecollet.com>2014-07-27 18:27:51 +0200
commita725ecce477cf3630160f779504a7bfa9d94c9ce (patch)
tree5b37d8e20d3f6690d478035490b7696df3b8734e /index.php
parentd699795fb839bded96c4f92c24df4eca7d029f57 (diff)
hide EOL version on main page (repo list)
Diffstat (limited to 'index.php')
-rw-r--r--index.php6
1 files changed, 5 insertions, 1 deletions
diff --git a/index.php b/index.php
index 1489018..b3e82bd 100644
--- a/index.php
+++ b/index.php
@@ -47,7 +47,11 @@ try {
$prev = false;
$repositories = array();
- foreach ($repo->request(array('id' => '>0', 'ORDER'=>'id')) as $repo) {
+ $crit = array('id' => '>0', 'ORDER'=>'id');
+ if (!isset($_GET['eol']) || !$_GET['eol']) {
+ $crit['active'] = 1;
+ }
+ foreach ($repo->request($crit) as $repo) {
$repositories[] = array(
'repo_name' => ($repo['main'] != $prev ? $repo['main'] : "&nbsp;"),
'active' => ($repo['main'] != $prev ?