r112605 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r112604‎ | r112605 | r112606 >
Date:15:44, 28 February 2012
Author:nikerabbit
Status:ok
Tags:
Comment:
Ping r112600 - use it here too
Modified paths:
  • /trunk/extensions/Translate/Translate.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Translate/Translate.php
@@ -33,8 +33,8 @@
3434 * @cond file_level_code
3535 * Setup class autoloading.
3636 */
37 -$dir = dirname( __FILE__ ) . '/';
38 -require_once( $dir . '_autoload.php' );
 37+$dir = dirname( __FILE__ );
 38+require_once( "$dir/_autoload.php" );
3939 /** @endcond */
4040
4141 /**
@@ -42,12 +42,12 @@
4343 */
4444
4545 // Register extension messages and other localisation.
46 -$wgExtensionMessagesFiles['Translate'] = $dir . 'Translate.i18n.php';
47 -$wgExtensionMessagesFiles['FirstSteps'] = $dir . 'FirstSteps.i18n.php';
48 -$wgExtensionMessagesFiles['PageTranslation'] = $dir . 'PageTranslation.i18n.php';
49 -$wgExtensionMessagesFiles['TranslateGroupDescriptions'] = $dir . 'TranslateGroupDescriptions.i18n.php';
50 -$wgExtensionMessagesFiles['TranslateAlias'] = $dir . 'Translate.alias.php';
51 -$wgExtensionMessagesFiles['TranslateMagic'] = $dir . 'Translate.magic.php';
 46+$wgExtensionMessagesFiles['Translate'] = "$dir/Translate.i18n.php";
 47+$wgExtensionMessagesFiles['FirstSteps'] = "$dir/FirstSteps.i18n.php";
 48+$wgExtensionMessagesFiles['PageTranslation'] = "$dir/PageTranslation.i18n.php";
 49+$wgExtensionMessagesFiles['TranslateGroupDescriptions'] = "$dir/TranslateGroupDescriptions.i18n.php";
 50+$wgExtensionMessagesFiles['TranslateAlias'] = "$dir/Translate.alias.php";
 51+$wgExtensionMessagesFiles['TranslateMagic'] = "$dir/Translate.magic.php";
5252
5353 // Register initialization code
5454 $wgExtensionFunctions[] = 'TranslateHooks::setupTranslate';

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r112600Switch to imho more readable syntaxnikerabbit15:07, 28 February 2012

Status & tagging log