From e575b2270413074eaea1339ea0fd2e3b7a9e37df Mon Sep 17 00:00:00 2001 From: Sam Reed Date: Sat, 23 Jan 2010 12:37:03 +0000 Subject: [PATCH] * (bug 22240) - API: include time in siteinfo Patch by Matthew Britton --- RELEASE-NOTES | 1 + includes/api/ApiQuerySiteinfo.php | 1 + 2 files changed, 2 insertions(+) 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 ); } -- 2.20.1