Index: trunk/extensions/WikiArticleFeeds/WikiArticleFeeds.php |
— | — | @@ -414,7 +414,7 @@ |
415 | 415 | * @param Array $filterTags Tags to use in filtering out items. |
416 | 416 | */ |
417 | 417 | function wfGenerateWikiFeed( $article, $feedFormat = 'atom', $filterTags = null ) { |
418 | | - global $wgOut, $wgScript, $wgServer, $wgFeedClasses, $wgVersion, $wgSitename; |
| 418 | + global $wgOut, $wgServer, $wgFeedClasses, $wgVersion, $wgSitename; |
419 | 419 | |
420 | 420 | # Setup, handle redirects |
421 | 421 | if ( $article->isRedirect() ) { |
Index: trunk/extensions/HeaderTabs/HeaderTabs_body.jq.php |
— | — | @@ -17,8 +17,6 @@ |
18 | 18 | } |
19 | 19 | |
20 | 20 | public static function replaceFirstLevelHeaders( &$parser, &$text ) { |
21 | | - global $htUseHistory, $wgVersion; |
22 | | - |
23 | 21 | $aboveandbelow = explode( '<div id="nomoretabs"></div>', $text, 2 ); |
24 | 22 | |
25 | 23 | if ( count( $aboveandbelow ) <= 1 ) { |
Index: trunk/extensions/GoogleMaps/GoogleMaps.body.php |
— | — | @@ -553,7 +553,7 @@ |
554 | 554 | |
555 | 555 | static function addMarker(&$pExporter, &$pParser, &$pLocalParser, $pLat, $pLon, |
556 | 556 | $pIcon, $pTitle, $pTabs, $pCaption, $pLineColorSet) { |
557 | | - global $wgUser, $wgVersion; |
| 557 | + global $wgUser; |
558 | 558 | $parsed = self::parseWikiText($pParser, $pLocalParser, preg_replace('/\r\n/', '<br />', $pCaption), $pParser->mTitle, $pParser->mOptions); |
559 | 559 | $title = Title::newFromText($pTitle); |
560 | 560 | $revision = is_null($title) ? null : |
Index: trunk/extensions/Deployment/specials/SpecialUpdate.php |
— | — | @@ -85,7 +85,7 @@ |
86 | 86 | * @param $status Mixed: false when there are no updates or a version number (string) when there is. |
87 | 87 | */ |
88 | 88 | protected function showCoreStatus( $status ) { |
89 | | - global $wgOut, $wgVersion; |
| 89 | + global $wgOut; |
90 | 90 | |
91 | 91 | if ( $status === false ) { |
92 | 92 | $wgOut->addHTML( '<h3>' . wfMsg( 'mediawiki-up-to-date' ) . '</h3>' ); |
Index: trunk/extensions/GetFamily/GetFamily.php |
— | — | @@ -40,7 +40,7 @@ |
41 | 41 | // FIXME: split off into GetFamily_body.php |
42 | 42 | function wfSpecialGetFamily() { |
43 | 43 | global $wgRequest, $wgLanguageNames; |
44 | | - global $wgScript, $wgDBname, $wgLanguageCode, $wgSitename, $wgServer, $wgArticlePath, $wgCanonicalNamespaceNames, $wgVersion; |
| 44 | + global $wgScript, $wgDBname, $wgLanguageCode, $wgSitename, $wgServer, $wgArticlePath, $wgVersion; |
45 | 45 | |
46 | 46 | $out = ''; |
47 | 47 | |
Index: trunk/extensions/SimpleSecurity/SimpleSecurity.php |
— | — | @@ -21,7 +21,6 @@ |
22 | 22 | */ |
23 | 23 | |
24 | 24 | if ( !defined( 'MEDIAWIKI' ) ) die( 'Not an entry point.' ); |
25 | | -if ( version_compare( $wgVersion, '1.12.0' ) < 0 ) die( 'Sorry, this extension requires at least MediaWiki version 1.12.0' ); |
26 | 25 | |
27 | 26 | define( 'SIMPLESECURITY_VERSION', '4.5.1, 2010-10-16' ); |
28 | 27 | |
Index: trunk/extensions/RecordAdmin/SpecialRecordAdmin.php |
— | — | @@ -31,7 +31,7 @@ |
32 | 32 | } |
33 | 33 | |
34 | 34 | function execute( $param ) { |
35 | | - global $wgVersion, $wgOut, $wgRequest, $wgLang, $wgRecordAdmin, $wgSecurityProtectRecords; |
| 35 | + global $wgOut, $wgRequest, $wgRecordAdmin, $wgSecurityProtectRecords; |
36 | 36 | if ( !isset( $wgSecurityProtectRecords ) ) $wgSecurityProtectRecords = false; |
37 | 37 | |
38 | 38 | $this->setHeaders(); |
Index: trunk/extensions/News/NewsRenderer.php |
— | — | @@ -553,8 +553,6 @@ |
554 | 554 | } |
555 | 555 | |
556 | 556 | static function replaceVariables($parser, $text, $params = null, $title = null) { |
557 | | - global $wgVersion; |
558 | | - |
559 | 557 | if ( $params === null ) $params = array(); |
560 | 558 | $text = $parser->replaceVariables( $text, $params ); |
561 | 559 | return $text; |
Index: trunk/extensions/Crosswiki/Block/CrosswikiBlock.page.php |
— | — | @@ -23,8 +23,7 @@ |
24 | 24 | * @param mixed $par Parameter passed to the page |
25 | 25 | */ |
26 | 26 | public function execute( $par ) { |
27 | | - global $wgOut, $wgUser, $wgRequest, $wgContLang, $wgLang; |
28 | | - global $wgVersion, $wgMaxNameChars, $wgCapitalLinks; |
| 27 | + global $wgOut, $wgUser, $wgRequest; |
29 | 28 | |
30 | 29 | # Add messages |
31 | 30 | wfLoadExtensionMessages( 'CrosswikiBlock' ); |
Index: trunk/extensions/CategoryTree/CategoryTree.php |
— | — | @@ -67,7 +67,7 @@ |
68 | 68 | |
69 | 69 | $wgCategoryTreeExtPath = '/extensions/CategoryTree'; |
70 | 70 | $wgCategoryTreeVersion = '6'; # NOTE: bump this when you change the CSS or JS files! |
71 | | -$wgCategoryTreeUseCategoryTable = version_compare( $wgVersion, "1.13", '>=' ); |
| 71 | +$wgCategoryTreeUseCategoryTable = true; |
72 | 72 | |
73 | 73 | $wgCategoryTreeOmitNamespace = CT_HIDEPREFIX_CATEGORIES; |
74 | 74 | $wgCategoryTreeDefaultMode = CT_MODE_CATEGORIES; |
Index: trunk/extensions/MetavidWiki/includes/MV_GlobalFunctions.php |
— | — | @@ -201,13 +201,8 @@ |
202 | 202 | } |
203 | 203 | } |
204 | 204 | |
205 | | - if (version_compare($wgVersion,'1.13','>=')) { |
206 | | - $wgHooks['SkinTemplateToolboxEnd'][] = 'mvAddToolBoxLinks'; // introduced only in 1.13 |
207 | | - } else { |
208 | | - $wgHooks['MonoBookTemplateToolboxEnd'][] = 'mvAddToolBoxLinks'; |
209 | | - } |
| 205 | + $wgHooks['SkinTemplateToolboxEnd'][] = 'mvAddToolBoxLinks'; // introduced only in 1.13 |
210 | 206 | |
211 | | - |
212 | 207 | // @@NOTE this hook is not avaliable by default in medaiwiki |
213 | 208 | // to use this hook you should add this function to moveTo() |
214 | 209 | // right after the local check in Title.php: |
Index: trunk/extensions/FCKeditor/FCKeditorParser.body.php |
— | — | @@ -180,11 +180,7 @@ |
181 | 181 | |
182 | 182 | $elements = array_unique( $elements ); |
183 | 183 | $matches = array(); |
184 | | - if( version_compare( "1.12", $wgVersion, ">" ) ) { |
185 | | - $text = Parser::extractTagsAndParams( $elements, $text, $matches, $uniq_prefix ); |
186 | | - } else { |
187 | | - $text = self::extractTagsAndParams( $elements, $text, $matches, $uniq_prefix ); |
188 | | - } |
| 184 | + $text = Parser::extractTagsAndParams( $elements, $text, $matches, $uniq_prefix ); |
189 | 185 | |
190 | 186 | foreach( $matches as $marker => $data ) { |
191 | 187 | list( $element, $content, $params, $tag ) = $data; |