diff options
author | Eric Wong <e@80x24.org> | 2014-04-07 20:26:42 +0000 |
---|---|---|
committer | Eric Wong <e@80x24.org> | 2014-04-07 20:26:42 +0000 |
commit | 7c69497a0126cd613053d881d63586bead07dd0e (patch) | |
tree | 7c9a3b7b143676da6d47b1a420d574e35df0e42c /public-inbox-cgi | |
parent | bc205de3d5472c67208440d34089cc5bd6792278 (diff) | |
download | public-inbox-7c69497a0126cd613053d881d63586bead07dd0e.tar.gz |
Passing a giant argument list is to error prone and hard-to-document.
Diffstat (limited to 'public-inbox-cgi')
-rwxr-xr-x | public-inbox-cgi | 18 |
1 files changed, 13 insertions, 5 deletions
diff --git a/public-inbox-cgi b/public-inbox-cgi index cfcf3feb..ccfaae37 100755 --- a/public-inbox-cgi +++ b/public-inbox-cgi @@ -73,8 +73,12 @@ sub get_atom_all { print $cgi->header(-type => "application/xml", -charset => 'us-ascii', -status => '200 OK'); - print PublicInbox::Feed->generate($git_dir, undef, - $pi_config, $listname, $cgi); + print PublicInbox::Feed->generate({ + git_dir => $git_dir, + pi_config => $pi_config, + listname => $listname, + cgi => $cgi + }); } # /$LISTNAME/index.atom.xml -> Atom feed @@ -86,7 +90,11 @@ sub get_atom_index { require PublicInbox::Feed; print $cgi->header(-type => "application/xml", -charset => 'us-ascii', -status => '200 OK'); - - print PublicInbox::Feed->generate($git_dir, undef, - $pi_config, $listname, $cgi, 1); + print PublicInbox::Feed->generate({ + git_dir => $git_dir, + pi_config => $pi_config, + listname => $listname, + cgi => $cgi, + top => 1 + }); } |