dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
bedf5ae
)
fix a problem by not inserting __MWTEMPLATESECTION for section titles that don't...
author
River Tarnell
<kateturner@users.mediawiki.org>
Tue, 21 Sep 2004 18:15:37 +0000
(18:15 +0000)
committer
River Tarnell
<kateturner@users.mediawiki.org>
Tue, 21 Sep 2004 18:15:37 +0000
(18:15 +0000)
includes/Parser.php
patch
|
blob
|
history
diff --git
a/includes/Parser.php
b/includes/Parser.php
index
1b27441
..
8223bea
100644
(file)
--- a/
includes/Parser.php
+++ b/
includes/Parser.php
@@
-1857,9
+1857,11
@@
class Parser
$text = '';
$nsec = 0;
for( $i = 0; $i < count($matches); $i += 2 ) {
+ wfDebug("text=[".$matches[$i]."] heading=[".$matches[$i+1]."]\n");
if ($matches[$i] == "" && $matches[$i + 1] == "") break;
$text .= $matches[$i];
$hl = $matches[$i + 1];
+ if ($hl == "") continue;
if( strstr($hl, "__MWTEMPLATESECTION") ) {
$text .= $hl;
continue;