r82242 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r82241‎ | r82242 | r82243 >
Date:13:29, 16 February 2011
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Minor tweak
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_AutocompleteAPI.php (modified) (history)
  • /trunk/extensions/SemanticForms/includes/SF_FormUtils.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_FormUtils.php
@@ -314,7 +314,7 @@
315315 wfMsgForContent( 'february' ),
316316 wfMsgForContent( 'march' ),
317317 wfMsgForContent( 'april' ),
318 - wfMsgForContent( 'may' ),
 318+ wfMsgForContent( 'may_long' ),
319319 wfMsgForContent( 'june' ),
320320 wfMsgForContent( 'july' ),
321321 wfMsgForContent( 'august' ),
Index: trunk/extensions/SemanticForms/includes/SF_AutocompleteAPI.php
@@ -1,22 +1,13 @@
22 <?php
 3+
34 /**
45 * Adds and handles the 'sfautocomplete' action to the MediaWiki API.
56 *
 7+ * @ingroup API
 8+ *
69 * @author Sergey Chernyshev
710 * @author Yaron Koren
811 */
9 -
10 -/**
11 - * Protect against register_globals vulnerabilities.
12 - * This line must be present before any global variable is referenced.
13 - */
14 -if ( !defined( 'MEDIAWIKI' ) ) {
15 - die( 'Not an entry point.' );
16 -}
17 -
18 -/**
19 - * @ingroup API
20 - */
2112 class SFAutocompleteAPI extends ApiBase {
2213
2314 public function __construct( $query, $moduleName ) {

Follow-up revisions

RevisionCommit summaryAuthorDate
r83063Reverted r82242 - undid special handling for displaying the month of May, whi...yaron02:53, 2 March 2011
r83089Reverted r83063, restored r82242 - using 'may_long' is in fact better than 'may'yaron14:52, 2 March 2011