r71105 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r71104‎ | r71105 | r71106 >
Date:09:20, 15 August 2010
Author:jeroendedauw
Status:deferred
Tags:
Comment:
Follow up to r71103
Modified paths:
  • /trunk/extensions/Distribution/api/ApiUpdates.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Distribution/api/ApiUpdates.php
@@ -85,7 +85,11 @@
8686 * @param $states Array: a list of allowed release states.
8787 */
8888 protected function checkForCoreUpdates( $mwVersion, array $states ) {
89 - // TODO: merge with MWReleases here?
 89+ $coreVersion = ReleaseRepo::singleton()->getLatestStableRelease()->getNumber();
 90+
 91+ if ( version_compare( $coreVersion, $mwVersion, '>' ) ) {
 92+ $this->getResult()->addValue( null, 'mediawiki', $coreVersion );
 93+ }
9094 }
9195
9296 /**

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r71103Merged in the new MWReleases codejeroendedauw08:49, 15 August 2010

Status & tagging log