From: Thijs K. <ki...@us...> - 2005-04-22 21:50:19
|
Update of /cvsroot/squirrelmail/squirrelmail/src In directory sc8-pr-cvs1.sourceforge.net:/tmp/cvs-serv26260/src Modified Files: Tag: SM-1_4-STABLE left_main.php Log Message: Fix folder indenting in message list didn't use folder_prefix (#726719, #1013888). Index: left_main.php =================================================================== RCS file: /cvsroot/squirrelmail/squirrelmail/src/left_main.php,v retrieving revision 1.154.2.22 retrieving revision 1.154.2.23 diff -u -w -r1.154.2.22 -r1.154.2.23 --- left_main.php 22 Apr 2005 17:20:35 -0000 1.154.2.22 +++ left_main.php 22 Apr 2005 21:50:10 -0000 1.154.2.23 @@ -932,7 +932,8 @@ for ($i = 0; $i < count($boxes); $i++) { if ( $boxes[$i]['visible'] ) { $mailbox = $boxes[$i]['formatted']; - $mblevel = substr_count($boxes[$i]['unformatted'], $delimiter) + 1; + // remove folder_prefix using substr so folders aren't indented unnecessarily + $mblevel = substr_count(substr($boxes[$i]['unformatted'], strlen($folder_prefix)), $delimiter) + 1; /* Create the prefix for the folder name and link. */ $prefix = str_repeat(' ',$mblevel); |