From 34592e29eba7673d3947d6468766d19d4acccbc4 Mon Sep 17 00:00:00 2001 From: PaulHarvey Date: Mon, 28 Mar 2011 23:28:02 +0000 Subject: [PATCH] Item9874: Change limit to avoid sudden server death git-svn-id: http://svn.foswiki.org/trunk/TopicRecursePlugin@11258 0b4bb1d4-4e5a-0410-9cc4-b2b747904278 --- data/System/VarTOPICRECURSE.txt | 2 +- lib/Foswiki/Plugins/TopicRecursePlugin/Core.pm | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/data/System/VarTOPICRECURSE.txt b/data/System/VarTOPICRECURSE.txt index 2cd8498..d1f46f8 100644 --- a/data/System/VarTOPICRECURSE.txt +++ b/data/System/VarTOPICRECURSE.txt @@ -17,7 +17,7 @@ =formatbranch="..."= %BR% \ =formatleaf="..."= | Custom format results: see [[FormattedSearch]] for usage & examples; "branch" format is for nodes which have descendents; "leaf" format is for terminating nodes for which there are no others below. | =$indent* [[$web.$topic][$topic]]= | | =separator="..."= | Separator _between_ search hits. See [[#FormatTokens]] | =$n= | - | =nodelimit= | Maximum number of nodes to be displayed. 0 = no limit. | =999= | + | =nodelimit= | Maximum number of nodes to be displayed. 0 = no limit. | =50= | | =depthlimit= | Maximum depth to recurse to. 0 = no limit. | =0= | | =breadthlimit= %X% | Maximum number of nodes to be displayed _at a given depth_. 0 = no limit. | =0= | diff --git a/lib/Foswiki/Plugins/TopicRecursePlugin/Core.pm b/lib/Foswiki/Plugins/TopicRecursePlugin/Core.pm index 0818736..0f0f475 100644 --- a/lib/Foswiki/Plugins/TopicRecursePlugin/Core.pm +++ b/lib/Foswiki/Plugins/TopicRecursePlugin/Core.pm @@ -35,7 +35,7 @@ sub extractParams { $args{formatleaf} ||= $args{format}; $args{separator} ||= '$n'; $args{footer} ||= '*Total: $ntopics*'; - $args{nodelimit} ||= '999'; + $args{nodelimit} ||= '50'; return \%args; }