Add 'contentmodel' to resultproperties in prop=revisions
authorumherirrender <umherirrender_de.wp@web.de>
Wed, 31 Oct 2012 18:44:48 +0000 (19:44 +0100)
committerumherirrender <umherirrender_de.wp@web.de>
Wed, 31 Oct 2012 18:44:48 +0000 (19:44 +0100)
Change-Id: Ied3ad1b5088821fbb6c51fd91a5eac09e900fd96

includes/api/ApiQueryRevisions.php

index 5c3b33b..d159f2d 100644 (file)
@@ -783,7 +783,10 @@ class ApiQueryRevisions extends ApiQueryBase {
                                        ApiBase::PROP_NULLABLE => true
                                ),
                                'texthidden' => 'boolean'
-                       )
+                       ),
+                       'contentmodel' => array(
+                               'contentmodel' => 'string'
+                       ),
                );
 
                self::addTokenProperties( $props, $this->getTokenFunctions() );