Index: trunk/extensions/SemanticResultFormats/Calendar/SRF_Calendar.php |
— | — | @@ -149,6 +149,8 @@ |
150 | 150 | function displayCalendar($events) { |
151 | 151 | global $wgOut, $srfgScriptPath, $wgParser, $wgRequest; |
152 | 152 | |
| 153 | + $wgParser->disableCache(); |
| 154 | + |
153 | 155 | $wgOut->addLink( array( |
154 | 156 | 'rel' => 'stylesheet', |
155 | 157 | 'type' => 'text/css', |
— | — | @@ -160,20 +162,22 @@ |
161 | 163 | // set variables differently depending on whether this is |
162 | 164 | // being called from an #ask call or the Special:Ask page |
163 | 165 | $page_title = $wgParser->getTitle(); |
| 166 | + $additional_query_string = ''; |
| 167 | + $hidden_inputs = ''; |
164 | 168 | $in_ask_page = is_null($page_title); |
165 | 169 | if ($in_ask_page) { |
166 | 170 | global $wgTitle; |
167 | 171 | $page_title = $wgTitle; |
168 | 172 | global $wgUser; |
169 | 173 | $skin = $wgUser->getSkin(); |
170 | | - $additional_query_string = ''; |
171 | 174 | foreach ($wgRequest->getValues() as $key => $value) { |
172 | | - if ($key != 'month' && $key != 'year') |
| 175 | + if ($key != 'month' && $key != 'year') { |
173 | 176 | $additional_query_string .= "&$key=$value"; |
| 177 | + $hidden_inputs .= "<input type=\"hidden\" name=\"$key\" value=\"$value\" />\n"; |
| 178 | + } |
174 | 179 | } |
175 | 180 | } else { |
176 | 181 | $skin = $wgParser->getOptions()->getSkin(); |
177 | | - $additional_query_string = ''; |
178 | 182 | } |
179 | 183 | // get all the date-based values we need - the current month |
180 | 184 | // and year (i.e., the one the user is looking at - not |
— | — | @@ -259,6 +263,7 @@ |
260 | 264 | $text .=<<<END |
261 | 265 | </select> |
262 | 266 | <input name="year" type="text" value="$cur_year" size="4"> |
| 267 | +$hidden_inputs |
263 | 268 | <input type="submit" value="$go_to_month_text"> |
264 | 269 | </form> |
265 | 270 | </td> |