Index: trunk/phase3/includes/Parser.php |
— | — | @@ -1857,9 +1857,11 @@ |
1858 | 1858 | $text = ''; |
1859 | 1859 | $nsec = 0; |
1860 | 1860 | for( $i = 0; $i < count($matches); $i += 2 ) { |
| 1861 | + wfDebug("text=[".$matches[$i]."] heading=[".$matches[$i+1]."]\n"); |
1861 | 1862 | if ($matches[$i] == "" && $matches[$i + 1] == "") break; |
1862 | 1863 | $text .= $matches[$i]; |
1863 | 1864 | $hl = $matches[$i + 1]; |
| 1865 | + if ($hl == "") continue; |
1864 | 1866 | if( strstr($hl, "__MWTEMPLATESECTION") ) { |
1865 | 1867 | $text .= $hl; |
1866 | 1868 | continue; |