From: Roan Kattouw Date: Sat, 2 May 2009 13:35:20 +0000 (+0000) Subject: API: Add PHP and database version to meta=siteinfo output X-Git-Tag: 1.31.0-rc.0~41908 X-Git-Url: https://git.cyclocoop.org/%7B%24admin_url%7Dmembres/fiche.php?a=commitdiff_plain;h=06687f0d95846512163ce849fca41e81711e6984;p=lhc%2Fweb%2Fwiklou.git API: Add PHP and database version to meta=siteinfo output --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 06a226875c..a0a7e68f92 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -126,6 +126,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 18597) Internal error with empty generator= parameter * (bug 16422) Don't display help for format=jsonfm unless specifically requested * (bug 18617) Add xml:space="preserve" attribute to relevant tags in XML output +* Added PHP and database version to meta=siteinfo output === Languages updated in 1.16 === diff --git a/includes/api/ApiQuerySiteinfo.php b/includes/api/ApiQuerySiteinfo.php index c4832f4eec..3fe97121db 100644 --- a/includes/api/ApiQuerySiteinfo.php +++ b/includes/api/ApiQuerySiteinfo.php @@ -108,6 +108,10 @@ class ApiQuerySiteinfo extends ApiQueryBase { $data['base'] = $mainPage->getFullUrl(); $data['sitename'] = $GLOBALS['wgSitename']; $data['generator'] = "MediaWiki {$GLOBALS['wgVersion']}"; + $data['phpversion'] = phpversion(); + $data['phpsapi'] = php_sapi_name(); + $data['dbclass'] = get_class($this->getDB()); + $data['dbversion'] = $this->getDB()->getServerVersion(); $svn = SpecialVersion::getSvnRevision( $GLOBALS['IP'] ); if( $svn )