Followup e48ecbc5: fix fatal error due to undefined variable
authorRoan Kattouw <roan.kattouw@gmail.com>
Mon, 16 Jun 2014 18:30:47 +0000 (11:30 -0700)
committerReedy <reedy@wikimedia.org>
Mon, 16 Jun 2014 18:40:35 +0000 (18:40 +0000)
Bug: 66669
Change-Id: I195a5ff539f09addb92d2bb07d53bdb3aef0db1f

includes/api/ApiQueryRevisions.php

index 78aa029..3ff6805 100644 (file)
@@ -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 );