Index: trunk/extensions/DoubleWiki/DoubleWiki_body.php |
— | — | @@ -135,7 +135,7 @@ |
136 | 136 | $left_chunk .= $left_slices[$i]; |
137 | 137 | |
138 | 138 | # if we are at the end of the loop, finish quickly |
139 | | - if ( $i == count( $left_slices ) - 1 ) { |
| 139 | + if ( $i == $leftSliceCount - 1 ) { |
140 | 140 | $right_chunk .= $right_text; |
141 | 141 | $found = true; |
142 | 142 | } else { |
— | — | @@ -164,8 +164,8 @@ |
165 | 165 | // $body .= "<tr style=\"background-color:#ffdddd;\"><td>".count($left_bits)."</td><td>".count($right_bits)."</td></tr>\n"; |
166 | 166 | // Do not align paragraphs if counts are different |
167 | 167 | if ( count( $left_bits ) != count( $right_bits ) ) { |
168 | | - $left_bits = Array( $left_chunk ); |
169 | | - $right_bits = Array( $right_chunk ); |
| 168 | + $left_bits = array( $left_chunk ); |
| 169 | + $right_bits = array( $right_chunk ); |
170 | 170 | } |
171 | 171 | |
172 | 172 | $left_chunk = ''; |