Actually fetch config object in ApiQueryRecentChanges::getResultProperties
authorBrad Jorsch <bjorsch@wikimedia.org>
Tue, 24 Jun 2014 16:52:38 +0000 (12:52 -0400)
committerBrad Jorsch <bjorsch@wikimedia.org>
Tue, 24 Jun 2014 16:54:10 +0000 (12:54 -0400)
Change-Id: Id9c316733896a27ce3f6c3e0e5efdf62f7d1ff1b

includes/api/ApiQueryRecentChanges.php

index 3067006..e4078d5 100644 (file)
@@ -813,7 +813,7 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase {
                                        ApiBase::PROP_NULLABLE => true
                                ),
                                'logtype' => array(
-                                       ApiBase::PROP_TYPE => $config->get( 'LogTypes' ),
+                                       ApiBase::PROP_TYPE => $this->getConfig()->get( 'LogTypes' ),
                                        ApiBase::PROP_NULLABLE => true
                                ),
                                'logaction' => array(