master
joey 2007-04-07 16:55:16 +00:00
parent 8abe3af165
commit 072d097be1
4 changed files with 7 additions and 4 deletions

View File

@ -46,7 +46,7 @@ sub backlinks ($) { #{{{
} }
@links = sort { $a->{page} cmp $b->{page} } @links; @links = sort { $a->{page} cmp $b->{page} } @links;
return \@links, [] if @links <= $config{numbacklinks}; return \@links, [] if @links <= $config{numbacklinks} && ! $config{numbacklinks};
return [@links[0..$config{numbacklinks}-1]], return [@links[0..$config{numbacklinks}-1]],
[@links[$config{numbacklinks}..$#links]]; [@links[$config{numbacklinks}..$#links]];
} #}}} } #}}}

View File

@ -1 +1,4 @@
No value for `numbacklinks` will achieve a setting of "no limit". --[[JoshTriplett]] No value for `numbacklinks` will achieve a setting of "no limit".
--[[JoshTriplett]]
0 [[done]] --[[Joey]]

View File

@ -236,7 +236,7 @@ configuration options of their own.
* --numbacklinks n * --numbacklinks n
Controls how many backlinks should be displayed maximum. Excess backlinks Controls how many backlinks should be displayed maximum. Excess backlinks
will be hidden in a popup. Default is 10. will be hidden in a popup. Default is 10. Set to 0 to disable this feature.
* --userdir subdir * --userdir subdir

View File

@ -8,7 +8,7 @@ msgid ""
msgstr "" msgstr ""
"Project-Id-Version: PACKAGE VERSION\n" "Project-Id-Version: PACKAGE VERSION\n"
"Report-Msgid-Bugs-To: \n" "Report-Msgid-Bugs-To: \n"
"POT-Creation-Date: 2007-04-06 17:19-0400\n" "POT-Creation-Date: 2007-04-06 19:31-0400\n"
"PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n" "PO-Revision-Date: YEAR-MO-DA HO:MI+ZONE\n"
"Last-Translator: FULL NAME <EMAIL@ADDRESS>\n" "Last-Translator: FULL NAME <EMAIL@ADDRESS>\n"
"Language-Team: LANGUAGE <LL@li.org>\n" "Language-Team: LANGUAGE <LL@li.org>\n"