r27907 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r27906‎ | r27907 | r27908 >
Date:20:51, 27 November 2007
Author:tlaqua
Status:old
Tags:
Comment:
Fixing more minor compatibility issues.
Modified paths:
  • /trunk/extensions/ContributionScores/ContributionScores.php (modified) (history)
  • /trunk/extensions/StalePages/StalePages.php (modified) (history)

Diff [purge]

Index: trunk/extensions/StalePages/StalePages.php
@@ -18,13 +18,12 @@
1919 );
2020
2121 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';
2423 } else {
2524 $wgExtensionFunctions[] = 'efStalepages';
2625 }
2726
28 -$wgAutoloadClasses['Stalepages'] = $dir . 'StalePages_body.php';
 27+$wgAutoloadClasses['Stalepages'] = dirname(__FILE__) . '/StalePages_body.php';
2928
3029 $wgSpecialPages['Stalepages'] = 'Stalepages';
3130
Index: trunk/extensions/ContributionScores/ContributionScores.php
@@ -17,12 +17,11 @@
1818 'version'=>'1.5'
1919 );
2020
21 -$wgAutoloadClasses['ContributionScores'] = $dir . 'ContributionScores_body.php';
 21+$wgAutoloadClasses['ContributionScores'] = dirname( __FILE__ ) . '/ContributionScores_body.php';
2222 $wgSpecialPages['ContributionScores'] = 'ContributionScores';
2323
2424 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';
2726 } else {
2827 $wgExtensionFunctions[] = 'efContributionScores';
2928 }

Status & tagging log