From de7d383d8f840ef33a79fd5b5f06c5ebcbf74905 Mon Sep 17 00:00:00 2001 From: Roan Kattouw Date: Mon, 16 Jun 2014 11:30:47 -0700 Subject: [PATCH] Followup e48ecbc5: fix fatal error due to undefined variable Bug: 66669 Change-Id: I195a5ff539f09addb92d2bb07d53bdb3aef0db1f --- includes/api/ApiQueryRevisions.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/includes/api/ApiQueryRevisions.php b/includes/api/ApiQueryRevisions.php index 78aa029648..3ff68059a3 100644 --- a/includes/api/ApiQueryRevisions.php +++ b/includes/api/ApiQueryRevisions.php @@ -626,7 +626,7 @@ class ApiQueryRevisions extends ApiQueryBase { if ( $content && ( !is_null( $this->diffto ) || !is_null( $this->difftotext ) ) ) { static $n = 0; // Number of uncached diffs we've had - if ( $n < $config->get( 'APIMaxUncachedDiffs' ) ) { + if ( $n < $this->getConfig()->get( 'APIMaxUncachedDiffs' ) ) { $vals['diff'] = array(); $context = new DerivativeContext( $this->getContext() ); $context->setTitle( $title ); -- 2.20.1