Index: trunk/extensions/Distribution/api/ApiUpdates.php |
— | — | @@ -85,7 +85,11 @@ |
86 | 86 | * @param $states Array: a list of allowed release states. |
87 | 87 | */ |
88 | 88 | 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 | + } |
90 | 94 | } |
91 | 95 | |
92 | 96 | /** |