diff options
author | Remi Collet <fedora@famillecollet.com> | 2014-07-27 18:27:51 +0200 |
---|---|---|
committer | Remi Collet <fedora@famillecollet.com> | 2014-07-27 18:27:51 +0200 |
commit | a725ecce477cf3630160f779504a7bfa9d94c9ce (patch) | |
tree | 5b37d8e20d3f6690d478035490b7696df3b8734e | |
parent | d699795fb839bded96c4f92c24df4eca7d029f57 (diff) |
hide EOL version on main page (repo list)
-rw-r--r-- | index.php | 6 |
1 files changed, 5 insertions, 1 deletions
@@ -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'] : " "), 'active' => ($repo['main'] != $prev ? |