Index: trunk/extensions/Translate/Translate.php |
— | — | @@ -33,8 +33,8 @@ |
34 | 34 | * @cond file_level_code |
35 | 35 | * Setup class autoloading. |
36 | 36 | */ |
37 | | -$dir = dirname( __FILE__ ) . '/'; |
38 | | -require_once( $dir . '_autoload.php' ); |
| 37 | +$dir = dirname( __FILE__ ); |
| 38 | +require_once( "$dir/_autoload.php" ); |
39 | 39 | /** @endcond */ |
40 | 40 | |
41 | 41 | /** |
— | — | @@ -42,12 +42,12 @@ |
43 | 43 | */ |
44 | 44 | |
45 | 45 | // 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"; |
52 | 52 | |
53 | 53 | // Register initialization code |
54 | 54 | $wgExtensionFunctions[] = 'TranslateHooks::setupTranslate'; |