Index: trunk/extensions/StalePages/StalePages.php |
— | — | @@ -18,13 +18,12 @@ |
19 | 19 | ); |
20 | 20 | |
21 | 21 | if( version_compare( $wgVersion, '1.12alpha', '>=' ) ) { |
22 | | - $dir = dirname(__FILE__) . '/'; |
23 | | - $wgExtensionMessagesFiles['Stalepages'] = $dir . 'StalePages.i18n.php'; |
| 22 | + $wgExtensionMessagesFiles['Stalepages'] = $dirname(__FILE__) . '/StalePages.i18n.php'; |
24 | 23 | } else { |
25 | 24 | $wgExtensionFunctions[] = 'efStalepages'; |
26 | 25 | } |
27 | 26 | |
28 | | -$wgAutoloadClasses['Stalepages'] = $dir . 'StalePages_body.php'; |
| 27 | +$wgAutoloadClasses['Stalepages'] = dirname(__FILE__) . '/StalePages_body.php'; |
29 | 28 | |
30 | 29 | $wgSpecialPages['Stalepages'] = 'Stalepages'; |
31 | 30 | |
Index: trunk/extensions/ContributionScores/ContributionScores.php |
— | — | @@ -17,12 +17,11 @@ |
18 | 18 | 'version'=>'1.5' |
19 | 19 | ); |
20 | 20 | |
21 | | -$wgAutoloadClasses['ContributionScores'] = $dir . 'ContributionScores_body.php'; |
| 21 | +$wgAutoloadClasses['ContributionScores'] = dirname( __FILE__ ) . '/ContributionScores_body.php'; |
22 | 22 | $wgSpecialPages['ContributionScores'] = 'ContributionScores'; |
23 | 23 | |
24 | 24 | if( version_compare( $wgVersion, '1.12alpha', '>=' ) ) { |
25 | | - $dir = dirname(__FILE__) . '/'; |
26 | | - $wgExtensionMessagesFiles['ContributionScores'] = $dir . 'ContributionScores.i18n.php'; |
| 25 | + $wgExtensionMessagesFiles['ContributionScores'] = dirname(__FILE__) . '/ContributionScores.i18n.php'; |
27 | 26 | } else { |
28 | 27 | $wgExtensionFunctions[] = 'efContributionScores'; |
29 | 28 | } |