r89565 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r89564‎ | r89565 | r89566 >
Date:14:53, 6 June 2011
Author:catrope
Status:ok
Tags:
Comment:
1.17wmf1: MFT r89563
Modified paths:
  • /branches/wmf/1.17wmf1/extensions/WikimediaIncubator/SpecialRandomByTest.php (modified) (history)

Diff [purge]

Index: branches/wmf/1.17wmf1/extensions/WikimediaIncubator/SpecialRandomByTest.php
@@ -13,8 +13,12 @@
1414 $this->extra[] = 'page_title' .
1515 $dbr->buildLike( IncubatorTest::displayPrefix() . '/', $dbr->anyString() );
1616 } elseif($wgUser->getOption($wmincPref . '-project') == $wmincProjectSite['short'] ) {
17 - // project or help namespace
18 - $this->extra['page_namespace'] = array( 4, 12 );
 17+ global $wgVersion;
 18+ // only works above MW 1.17
 19+ if( version_compare($wgVersion, '1.17', '>') ) {
 20+ // project or help namespace
 21+ $this->extra['page_namespace'] = array( 4, 12 );
 22+ }
1923 }
2024 parent::__construct( 'RandomByTest' );
2125 }

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r89563Two fixes for older MediaWiki versions...robin14:23, 6 June 2011

Status & tagging log