X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryRecentChanges.php;h=3067006c5897a4cf94bf5c26adc0c0fb4b8ec573;hb=3b658a2dd3339dce93ad74984eb0120f6c50ccd9;hp=1fb2a693b03de5efd0491b60eceb615ff37f8540;hpb=2664c2ab0168a0eec21db72532b3dc2c05468912;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryRecentChanges.php b/includes/api/ApiQueryRecentChanges.php index 1fb2a693b0..3067006c58 100644 --- a/includes/api/ApiQueryRecentChanges.php +++ b/includes/api/ApiQueryRecentChanges.php @@ -738,7 +738,6 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase { } public function getResultProperties() { - global $wgLogTypes; $props = array( '' => array( 'type' => array( @@ -814,7 +813,7 @@ class ApiQueryRecentChanges extends ApiQueryGeneratorBase { ApiBase::PROP_NULLABLE => true ), 'logtype' => array( - ApiBase::PROP_TYPE => $wgLogTypes, + ApiBase::PROP_TYPE => $config->get( 'LogTypes' ), ApiBase::PROP_NULLABLE => true ), 'logaction' => array(