Index: trunk/extensions/ContributionScores/ContributionScores.php |
— | — | @@ -30,11 +30,9 @@ |
31 | 31 | $wgSpecialPages['ContributionScores'] = 'ContributionScores'; |
32 | 32 | $wgSpecialPageGroups['ContributionScores'] = 'wiki'; |
33 | 33 | |
34 | | -if( version_compare( $wgVersion, '1.13', '>=' ) ) { |
35 | | - $wgExtensionMessagesFiles['ContributionScores'] = CONTRIBUTIONSCORES_PATH . '/ContributionScores.i18n.php'; |
36 | | - $wgExtensionAliasesFiles['ContributionScores'] = CONTRIBUTIONSCORES_PATH . '/ContributionScores.alias.php'; |
37 | | - $wgExtensionMessagesFiles['ContributionScores'] = CONTRIBUTIONSCORES_PATH . '/ContributionScores.i18n.php'; |
38 | | -} |
| 34 | +$wgExtensionMessagesFiles['ContributionScores'] = CONTRIBUTIONSCORES_PATH . '/ContributionScores.i18n.php'; |
| 35 | +$wgExtensionAliasesFiles['ContributionScores'] = CONTRIBUTIONSCORES_PATH . '/ContributionScores.alias.php'; |
| 36 | +$wgExtensionMessagesFiles['ContributionScores'] = CONTRIBUTIONSCORES_PATH . '/ContributionScores.i18n.php'; |
39 | 37 | |
40 | 38 | $wgHooks['LanguageGetMagic'][] = 'efContributionScores_LanguageGetMagic'; |
41 | 39 | |
Index: trunk/extensions/News/NewsRenderer.php |
— | — | @@ -557,18 +557,6 @@ |
558 | 558 | |
559 | 559 | if ( $params === null ) $params = array(); |
560 | 560 | $text = $parser->replaceVariables( $text, $params ); |
561 | | - |
562 | | - /* |
563 | | - if ( version_compare( $wgVersion, "1.12", '<' ) ) { |
564 | | - } |
565 | | - else { |
566 | | - $parser = $GLOBALS['wgParser']; |
567 | | - |
568 | | - $frame = $parser->getPreprocessor()->newCustomFrame($params); |
569 | | - $text = $parser->replaceVariables( $text, $frame ); |
570 | | - } |
571 | | - */ |
572 | | - |
573 | 561 | return $text; |
574 | 562 | } |
575 | 563 | |
Index: trunk/extensions/WikiArticleFeeds/WikiArticleFeeds.php |
— | — | @@ -187,11 +187,8 @@ |
188 | 188 | |
189 | 189 | # Attach Hooks |
190 | 190 | $wgHooks['OutputPageBeforeHTML'][] = 'wfAddWikiFeedHeaders'; |
191 | | -if ( version_compare( $wgVersion, '1.13', '>=' ) ) { |
192 | | - $wgHooks['SkinTemplateToolboxEnd'][] = 'wfWikiArticleFeedsToolboxLinks'; // introduced in 1.13 |
193 | | -} else { |
194 | | - $wgHooks['MonoBookTemplateToolboxEnd'][] = 'wfWikiArticleFeedsToolboxLinks'; |
195 | | -} |
| 191 | +$wgHooks['SkinTemplateToolboxEnd'][] = 'wfWikiArticleFeedsToolboxLinks'; // introduced in 1.13 |
| 192 | + |
196 | 193 | $wgHooks['UnknownAction'][] = 'wfWikiArticleFeedsAction'; |
197 | 194 | $wgHooks['ArticlePurge'][] = 'wfPurgeFeedsOnArticlePurge'; |
198 | 195 | |
Index: trunk/extensions/DumpHTML/dumpHTML.php |
— | — | @@ -63,12 +63,6 @@ |
64 | 64 | require_once( dirname(__FILE__)."/dumpHTML.inc" ); |
65 | 65 | require_once( dirname(__FILE__)."/SkinOffline.php" ); |
66 | 66 | |
67 | | -if ( version_compare( $wgVersion, '1.11.1', '<' ) ) { |
68 | | - echo "Error, the DumpHTML extension needs at least MediaWiki version 1.11.1 to work, you have version $wgVersion.\n"; |
69 | | - echo "Try using maintenance/dumpHTML.php instead.\n"; |
70 | | - exit; |
71 | | -} |
72 | | - |
73 | 67 | error_reporting( E_ALL & (~E_NOTICE) ); |
74 | 68 | |
75 | 69 | if( isset( $options['help'] ) || isset( $options['h'] ) ) { |
Index: trunk/extensions/DynamicPageList/DPLSetup.php |
— | — | @@ -1350,10 +1350,7 @@ |
1351 | 1351 | // return $dump1.$text.$dump2; |
1352 | 1352 | |
1353 | 1353 | $dplresult = DPLMain::dynamicPageList( $input, $params, $parser, $reset, 'func' ); |
1354 | | - global $wgVersion; |
1355 | | - if ( version_compare( $wgVersion, '1.12.0' ) < 0 || $parser instanceof Parser_OldPP ) { |
1356 | | - return $dplresult; |
1357 | | - } |
| 1354 | + |
1358 | 1355 | // old parser does further recursive processing by default |
1359 | 1356 | return array( // normal parser needs to be coaxed to do further recursive processing |
1360 | 1357 | $parser->getPreprocessor()->preprocessToObj( $dplresult, Parser::PTD_FOR_INCLUSION ), |