r5363 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r5362‎ | r5363 | r5364 >
Date:18:18, 21 September 2004
Author:kateturner
Status:old
Tags:
Comment:
don't generate edit links for template sections that don't exist
Modified paths:
  • /branches/REL1_3/phase3/includes/Parser.php (modified) (history)

Diff [purge]

Index: branches/REL1_3/phase3/includes/Parser.php
@@ -1851,6 +1851,7 @@
18521852 if ($matches[$i] == "" && $matches[$i + 1] == "") break;
18531853 $text .= $matches[$i];
18541854 $hl = $matches[$i + 1];
 1855+ if( $hl == "" ) continue;
18551856 if( strstr($hl, "<!--MWTEMPLATESECTION") ) {
18561857 $text .= $hl;
18571858 continue;

Status & tagging log