Skip to content

Commit

Permalink
cleanup
Browse files Browse the repository at this point in the history
  • Loading branch information
memowe committed Apr 21, 2011
1 parent 835cb5b commit 6f25ab4
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions bootylite.pl
Expand Up @@ -73,7 +73,7 @@

# calculate
my $start = ($page - 1) * $perpage;
my $end = min(($start + $perpage) - 1, $#articles);
my $end = min($start + $perpage - 1, $#articles);
my @paged = @articles[$start .. $end];
my $prev_page = $page > 1 ? $page - 1 : undef;
my $next_page = $end < $#articles ? $page + 1 : undef;
Expand Down Expand Up @@ -175,7 +175,7 @@
my $self = shift;

# get articles
my @articles = reverse @{$self->booty->articles};
my @articles = @{$self->booty->articles};

# store
$self->stash(articles => \@articles);
Expand Down
2 changes: 1 addition & 1 deletion t/10-web.t
Expand Up @@ -99,7 +99,7 @@ $t->text_is('title', 'Bootylite - Test that shit, yo!');
$t->text_is('h1', 'Test that shit, yo!')->text_is('#page em', 'page');

# atom feed
@articles = reverse @{$t->app->booty->articles};
@articles = @{$t->app->booty->articles};
$t->get_ok('/feed.xml')->status_is(200)->content_type_like(qr/xml/);
my $encoding = 'utf-8';
like(
Expand Down

0 comments on commit 6f25ab4

Please sign in to comment.