r21777 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r21776‎ | r21777 | r21778 >
Date:22:48, 1 May 2007
Author:sanbeg
Status:old
Tags:
Comment:
Call new method, for bug 9670
Modified paths:
  • /trunk/extensions/LabeledSectionTransclusion/lst.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LabeledSectionTransclusion/lst.php
@@ -145,7 +145,11 @@
146146 $text = '';
147147 return true;
148148 } else {
149 - $text = $parser->fetchTemplate($title);
 149+ if (method_exists($parser, 'fetchTemplateAndTitle')) {
 150+ list($text,$title) = $parser->fetchTemplateAndTitle($title);
 151+ } else {
 152+ $text = $parser->fetchTemplate($title);
 153+ }
150154 }
151155
152156 //if article doesn't exist, return a red link.

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r21758fix bug 9670: follow redirects in section edit linkssanbeg17:26, 1 May 2007