Skip to content

Commit

Permalink
! Actually, users should be able to override the number of topics sho…
Browse files Browse the repository at this point in the history
…wn on the homepage... (Home.template.php)
  • Loading branch information
Nao committed Nov 12, 2014
1 parent 1e70f28 commit 010e52b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/html/Home.template.php
Expand Up @@ -16,7 +16,7 @@ function template_home_topics($n = 0)
{
global $txt;

$n = $n ?: (isset($_REQUEST['n']) ? (int) $_REQUEST['n'] : 5);
$n = isset($_REQUEST['n']) ? (int) $_REQUEST['n'] : ($n ?: 5);
$next = $n < 50 ? ($n < 20 ? ($n < 10 ? 10 : 20) : 50) : 100;

echo '
Expand Down

0 comments on commit 010e52b

Please sign in to comment.