wibble
authorPierre Habouzit (MadCoder <pierre.habouzit@m4x.org>
Sun, 16 Jan 2005 23:59:13 +0000 (23:59 +0000)
committerFlorent Bruneau <florent.bruneau@polytechnique.org>
Thu, 26 Jun 2008 21:27:44 +0000 (23:27 +0200)
git-archimport-id: opensource@polytechnique.org--2005/platal--mainline--0.9--patch-363

htdocs/rss.php

index aa7a9b3..8d98b07 100644 (file)
@@ -22,7 +22,6 @@
 require_once('xorg.inc.php');
 new_nonhtml_page('rss.tpl', AUTH_PUBLIC);
 
-if (!Env::has('promo')) { exit; }
 require_once('rss.inc.php');
 
 $rss = $globals->xdb->iterator(
@@ -32,7 +31,7 @@ $rss = $globals->xdb->iterator(
                  AND (e.promo_min = 0 || e.promo_min <= {?})
                  AND (e.promo_max = 0 || e.promo_max >= {?})
        ORDER BY  (e.promo_min != 0 AND e.promo_max != 0) DESC, e.peremption',
-       Env::getInt('promo'), Env::getInt('promo'));
+       Env::getInt('promo', 3000), Env::getInt('promo'));
 $page->assign('rss', $rss);
 
 header('Content-Type: text/xml; charset=utf-8');