Index: trunk/extensions/LabeledSectionTransclusion/lst.php |
— | — | @@ -145,7 +145,11 @@ |
146 | 146 | $text = ''; |
147 | 147 | return true; |
148 | 148 | } 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 | + } |
150 | 154 | } |
151 | 155 | |
152 | 156 | //if article doesn't exist, return a red link. |