From 1835437de485fa672785445faad387dbd05ed39f Mon Sep 17 00:00:00 2001 From: Colin Kuskie Date: Thu, 30 Sep 2004 05:37:09 +0000 Subject: [PATCH] refactor indent generation code --- lib/WebGUI/Wobject/SiteMap.pm | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/lib/WebGUI/Wobject/SiteMap.pm b/lib/WebGUI/Wobject/SiteMap.pm index 34e160394..d50f89d4a 100644 --- a/lib/WebGUI/Wobject/SiteMap.pm +++ b/lib/WebGUI/Wobject/SiteMap.pm @@ -32,9 +32,7 @@ sub _traversePageTree { $depth = $_[2] || 99; $indent = $_[3]; $alphabetic = $_[4]; - for ($i=1;$i<=($indent*$currentDepth);$i++) { - $indentString .= " "; - } + $indentString = " " x ($indent*$currentDepth); if ($currentDepth < $depth) { if ($alphabetic) { $orderBy = 'title';