http://www.mediawiki.org/wiki/Special:Code/MediaWiki/60866

Revision: 60866
Author:   siebrand
Date:     2010-01-09 18:21:24 +0000 (Sat, 09 Jan 2010)

Log Message:
-----------
(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: trunk/extensions/SemanticResultFormats/Calendar/SRF_Calendar.php
===================================================================
--- trunk/extensions/SemanticResultFormats/Calendar/SRF_Calendar.php    
2010-01-09 18:14:51 UTC (rev 60865)
+++ trunk/extensions/SemanticResultFormats/Calendar/SRF_Calendar.php    
2010-01-09 18:21:24 UTC (rev 60866)
@@ -341,7 +341,7 @@
                                list($event_title, $other_text, $event_date, 
$color) = $event;
                                if ($event_date == $date_str) {
                                        if ($this->mTemplate != '') {
-                                               $templatetext = '{{' . 
$this->mTemplate . $other_text . '}}';
+                                               $templatetext = '{{' . 
$this->mTemplate . $other_text .'|thisdate=' . $date_str . '}}';
                                                $templatetext = 
$wgParser->replaceVariables($templatetext);
                                                $templatetext = 
$wgParser->recursiveTagParse($templatetext);
                                                $text .= $templatetext;



_______________________________________________
MediaWiki-CVS mailing list
MediaWiki-CVS@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to