Index: trunk/phase3/includes/api/ApiQuerySiteinfo.php |
— | — | @@ -68,7 +68,7 @@ |
69 | 69 | } |
70 | 70 | |
71 | 71 | protected function appendGeneralInfo($property) { |
72 | | - global $wgSitename, $wgVersion, $wgCapitalLinks, $wgRightsCode, $wgRightsText, $wgLanguageCode; |
| 72 | + global $wgSitename, $wgVersion, $wgCapitalLinks, $wgRightsCode, $wgRightsText, $wgLanguageCode, $IP; |
73 | 73 | |
74 | 74 | $data = array (); |
75 | 75 | $mainPage = Title :: newFromText(wfMsgForContent('mainpage')); |
— | — | @@ -76,6 +76,10 @@ |
77 | 77 | $data['base'] = $mainPage->getFullUrl(); |
78 | 78 | $data['sitename'] = $wgSitename; |
79 | 79 | $data['generator'] = "MediaWiki $wgVersion"; |
| 80 | + |
| 81 | + $svn = SpecialVersion::getSvnRevision ( $IP ); |
| 82 | + if ( $svn ) $data['rev'] = $svn; |
| 83 | + |
80 | 84 | $data['case'] = $wgCapitalLinks ? 'first-letter' : 'case-sensitive'; // 'case-insensitive' option is reserved for future |
81 | 85 | if (isset($wgRightsCode)) |
82 | 86 | $data['rightscode'] = $wgRightsCode; |
— | — | @@ -231,4 +235,4 @@ |
232 | 236 | public function getVersion() { |
233 | 237 | return __CLASS__ . ': $Id$'; |
234 | 238 | } |
235 | | -} |
\ No newline at end of file |
| 239 | +} |
Index: trunk/phase3/RELEASE-NOTES |
— | — | @@ -105,6 +105,7 @@ |
106 | 106 | * (bug 11404) Provide name of exception caught in error code field of internal api |
107 | 107 | error messages. |
108 | 108 | * (bug 11534) rvendid doesn't work |
| 109 | +* Include svn revision number (if install is checked-out from svn) in siteinfo query. |
109 | 110 | |
110 | 111 | === Languages updated in 1.12 === |
111 | 112 | |