mirror of
https://github.com/Universal-Omega/DynamicPageList3
synced 2024-11-14 19:30:15 +00:00
Fix allowUnlimitedResults + fix tests on 1.38.0+ (#70)
This commit is contained in:
parent
def70e249e
commit
cf3e0566ef
|
@ -218,7 +218,7 @@ class Query {
|
|||
|
||||
if ( $this->limit !== false ) {
|
||||
$options['LIMIT'] = $this->limit;
|
||||
} elseif ( $this->offset !== false ) {
|
||||
} elseif ( $this->offset !== false && !Config::getSetting( 'allowUnlimitedResults' ) ) {
|
||||
$options['LIMIT'] = $this->parameters->getParameter( 'count' );
|
||||
}
|
||||
|
||||
|
|
|
@ -8,14 +8,14 @@ use ImportStreamSource;
|
|||
use MediaWiki\Auth\AuthManager;
|
||||
use MediaWiki\MediaWikiServices;
|
||||
use MediaWiki\User\UserFactory;
|
||||
use MediaWikiTestCase;
|
||||
use MediaWikiIntegrationTestCase;
|
||||
use ParserOptions;
|
||||
use RequestContext;
|
||||
use Title;
|
||||
use User;
|
||||
use WikiImporter;
|
||||
|
||||
abstract class DPLIntegrationTestCase extends MediaWikiTestCase {
|
||||
abstract class DPLIntegrationTestCase extends MediaWikiIntegrationTestCase {
|
||||
/**
|
||||
* Guard condition to ensure we only import seed data once per test suite run.
|
||||
* @var bool
|
||||
|
|
Loading…
Reference in a new issue