r60866 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r60865‎ | r60866 | r60867 >
Date:18:21, 9 January 2010
Author:siebrand
Status:deferred
Tags:
Comment:
(bug 21754) Pass the event date to the template when used in format=calendar. Patch contributed by Jack D. Pond.
Modified paths:
  • /trunk/extensions/SemanticResultFormats/Calendar/SRF_Calendar.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticResultFormats/Calendar/SRF_Calendar.php
@@ -341,7 +341,7 @@
342342 list($event_title, $other_text, $event_date, $color) = $event;
343343 if ($event_date == $date_str) {
344344 if ($this->mTemplate != '') {
345 - $templatetext = '{{' . $this->mTemplate . $other_text . '}}';
 345+ $templatetext = '{{' . $this->mTemplate . $other_text .'|thisdate=' . $date_str . '}}';
346346 $templatetext = $wgParser->replaceVariables($templatetext);
347347 $templatetext = $wgParser->recursiveTagParse($templatetext);
348348 $text .= $templatetext;

Status & tagging log