Index: trunk/phase3/includes/parser/Parser.php |
— | — | @@ -1260,10 +1260,9 @@ |
1261 | 1261 | # First, do some preliminary work. This may shift some apostrophes from |
1262 | 1262 | # being mark-up to being text. It also counts the number of occurrences |
1263 | 1263 | # of bold and italics mark-ups. |
1264 | | - $i = 0; |
1265 | 1264 | $numbold = 0; |
1266 | 1265 | $numitalics = 0; |
1267 | | - foreach ( $arr as $r ) { |
| 1266 | + for ( $i = 0; $i < count( $arr ); $i++ ) { |
1268 | 1267 | if ( ( $i % 2 ) == 1 ) { |
1269 | 1268 | # If there are ever four apostrophes, assume the first is supposed to |
1270 | 1269 | # be text, and the remaining three constitute mark-up for bold text. |
— | — | @@ -1287,7 +1286,6 @@ |
1288 | 1287 | $numbold++; |
1289 | 1288 | } |
1290 | 1289 | } |
1291 | | - $i++; |
1292 | 1290 | } |
1293 | 1291 | |
1294 | 1292 | # If there is an odd number of both bold and italics, it is likely |