Index: branches/liquidthreads/extensions/LqtExtension.php |
— | — | @@ -246,12 +246,14 @@ |
247 | 247 | $p = new Parser(); $sig = $p->getUserSig( $thread->rootPost()->originalAuthor() ); |
248 | 248 | $this->output->addWikitext( $sig, false ); |
249 | 249 | $this->output->addHTML( wfCloseElement( 'li' ) ); |
| 250 | + |
| 251 | + global $wgContLang; |
| 252 | + $this->output->addHTML( |
| 253 | + wfOpenElement( 'li' ) . |
| 254 | + $wgContLang->timeanddate( $thread->touched() ) . |
| 255 | + wfCloseElement( 'li' ) |
| 256 | + ); |
250 | 257 | |
251 | | - $this->output->addHTML( wfOpenElement( 'li' ) ); |
252 | | - $d = new Date($thread->touched()); |
253 | | - $this->output->addHTML( $d->lastMonth()->text() ); |
254 | | - $this->output->addHTML( wfCloseElement( 'li' ) ); |
255 | | - |
256 | 258 | $commands = array( 'Edit' => $this->lqtTalkpageUrl( $this->title, 'lqt_edit_post', $thread ), |
257 | 259 | 'Reply' => $this->lqtTalkpageUrl( $this->title, 'lqt_reply_to', $thread ), |
258 | 260 | 'Permalink' => $this->permalinkUrl( $thread ) ); |
— | — | @@ -376,7 +378,7 @@ |
377 | 379 | $this->openDiv('lqt_archive_widget'); |
378 | 380 | $this->output->addHTML('<form><select>'); |
379 | 381 | foreach( $options as $o ) { |
380 | | - $this->output->addHTML("<option>$o"); |
| 382 | + $this->output->addHTML("<option>$o</option>"); |
381 | 383 | } |
382 | 384 | $this->output->addHTML('</select></form>'); |
383 | 385 | $this->closeDiv(); |
Property changes on: branches/liquidthreads/extensions/LqtExtension.php |
___________________________________________________________________ |
Name: svn:eol-style |
384 | 386 | + native |
Index: branches/liquidthreads/extensions/LqtModel.php |
— | — | @@ -195,11 +195,18 @@ |
196 | 196 | |
197 | 197 | /** List of months in which there are >0 threads, suitable for threadsOfArticleInMonth. */ |
198 | 198 | static function monthsWhereArticleHasThreads( $article ) { |
| 199 | + |
| 200 | + global $wgLang; |
| 201 | + |
199 | 202 | $threads = Thread::allThreadsOfArticle( $article ); |
200 | 203 | $months = array(); |
201 | 204 | foreach( $threads as $t ) { |
202 | 205 | $m = substr( $t->touched(), 0, 6 ); |
203 | | - if (!in_array( $m, $months )) $months[] = $m; |
| 206 | + if ( !array_key_exists( $m, $months ) ) { |
| 207 | + $year = substr($m, 0, 4); |
| 208 | + $month_num = substr($m, 4, 2); |
| 209 | + $months[$m] = $wgLang->getMonthName( $month_num ) . ' ' . $year; |
| 210 | + } |
204 | 211 | } |
205 | 212 | return $months; |
206 | 213 | } |
— | — | @@ -264,4 +271,4 @@ |
265 | 272 | |
266 | 273 | } |
267 | 274 | |
268 | | -?> |
\ No newline at end of file |
| 275 | +?> |
Property changes on: branches/liquidthreads/extensions/LqtModel.php |
___________________________________________________________________ |
Name: svn:eol-style |
269 | 276 | + native |