From: Sam Reed Date: Sat, 23 Jan 2010 12:37:03 +0000 (+0000) Subject: * (bug 22240) - API: include time in siteinfo X-Git-Tag: 1.31.0-rc.0~38146 X-Git-Url: http://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/exercices/?a=commitdiff_plain;h=e575b2270413074eaea1339ea0fd2e3b7a9e37df;p=lhc%2Fweb%2Fwiklou.git * (bug 22240) - API: include time in siteinfo Patch by Matthew Britton --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 0efac69bc0..734a812916 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -799,6 +799,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN descriptionurl * (bug 20233) ApiLogin::execute() doesn't handle LoginForm :: RESET_PASS * (bug 22061) API: add prop=headitems to action=parse +* (bug 22240) - API: include time in siteinfo === Languages updated in 1.16 === diff --git a/includes/api/ApiQuerySiteinfo.php b/includes/api/ApiQuerySiteinfo.php index c62a6f717f..a2559543d1 100644 --- a/includes/api/ApiQuerySiteinfo.php +++ b/includes/api/ApiQuerySiteinfo.php @@ -154,6 +154,7 @@ class ApiQuerySiteinfo extends ApiQueryBase { $data['variantarticlepath'] = $GLOBALS['wgVariantArticlePath']; $data['server'] = $GLOBALS['wgServer']; $data['wikiid'] = wfWikiID(); + $data['time'] = wfTimestamp( TS_ISO_8601, time() ); return $this->getResult()->addValue( 'query', $property, $data ); }