* (bug 22240) - API: include time in siteinfo
authorSam Reed <reedy@users.mediawiki.org>
Sat, 23 Jan 2010 12:37:03 +0000 (12:37 +0000)
committerSam Reed <reedy@users.mediawiki.org>
Sat, 23 Jan 2010 12:37:03 +0000 (12:37 +0000)
Patch by Matthew Britton

RELEASE-NOTES
includes/api/ApiQuerySiteinfo.php

index 0efac69..734a812 100644 (file)
@@ -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 ===
 
index c62a6f7..a255954 100644 (file)
@@ -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 );
        }