(bug 11094) Update API help for 'siteinfo' - based on a patch by VasilievVV
authorRob Church <robchurch@users.mediawiki.org>
Tue, 28 Aug 2007 15:37:31 +0000 (15:37 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Tue, 28 Aug 2007 15:37:31 +0000 (15:37 +0000)
includes/api/ApiQuerySiteinfo.php

index 0a1245e..caf444e 100644 (file)
@@ -207,11 +207,12 @@ class ApiQuerySiteinfo extends ApiQueryBase {
                                'Which sysinfo properties to get:',
                                ' "general"      - Overall system information',
                                ' "namespaces"   - List of registered namespaces (localized)',
-                               ' "interwikimap" - Return interwiki map (optionally filtered)',
-                               ' "dbrepllag"    - Returns DB server with the highest replication lag',
+                               ' "statistics"   - Returns site statistics',
+                               ' "interwikimap" - Returns interwiki map (optionally filtered)',
+                               ' "dbrepllag"    - Returns database server with the highest replication lag',
                        ),
                        'filteriw' =>  'Return only local or only nonlocal entries of the interwiki map',
-                       'showalldb' => 'List all DB servers, not just the one lagging the most',
+                       'showalldb' => 'List all database servers, not just the one lagging the most',
                );
        }
 
@@ -221,7 +222,7 @@ class ApiQuerySiteinfo extends ApiQueryBase {
 
        protected function getExamples() {
                return array(
-                       'api.php?action=query&meta=siteinfo&siprop=general|namespaces',
+                       'api.php?action=query&meta=siteinfo&siprop=general|namespaces|statistics',
                        'api.php?action=query&meta=siteinfo&siprop=interwikimap&sifilteriw=local',
                        'api.php?action=query&meta=siteinfo&siprop=dbrepllag&sishowalldb',
                        );
@@ -230,5 +231,4 @@ class ApiQuerySiteinfo extends ApiQueryBase {
        public function getVersion() {
                return __CLASS__ . ': $Id$';
        }
-}
-
+}
\ No newline at end of file