From: Roan Kattouw Date: Mon, 16 Jun 2014 18:30:47 +0000 (-0700) Subject: Followup e48ecbc5: fix fatal error due to undefined variable X-Git-Tag: 1.31.0-rc.0~15365 X-Git-Url: http://git.cyclocoop.org/url?a=commitdiff_plain;h=de7d383d8f840ef33a79fd5b5f06c5ebcbf74905;p=lhc%2Fweb%2Fwiklou.git Followup e48ecbc5: fix fatal error due to undefined variable Bug: 66669 Change-Id: I195a5ff539f09addb92d2bb07d53bdb3aef0db1f --- 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 );