X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fapi%2FApiQueryPagePropNames.php;h=2d56983c61161a6a92289c29a8f0be8b9d6e5dd4;hb=6baf2fb802f20af063cb4fe13cd99c9248aae1cb;hp=fc50b5067e658af3400cffe8749bfa848d4b463e;hpb=c340c41b37b5079ba90489f6b212bb8e4642031a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/api/ApiQueryPagePropNames.php b/includes/api/ApiQueryPagePropNames.php index fc50b5067e..2d56983c61 100644 --- a/includes/api/ApiQueryPagePropNames.php +++ b/includes/api/ApiQueryPagePropNames.php @@ -2,7 +2,7 @@ /** * Created on January 21, 2013 * - * Copyright © 2013 Brad Jorsch + * Copyright © 2013 Wikimedia Foundation and contributors * * This program is free software; you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -21,7 +21,6 @@ * * @file * @since 1.21 - * @author Brad Jorsch */ /** @@ -57,7 +56,11 @@ class ApiQueryPagePropNames extends ApiQueryBase { } $limit = $params['limit']; - $this->addOption( 'LIMIT', $limit + 1 ); + + // mysql has issues with limit in loose index T115825 + if ( $this->getDB()->getType() !== 'mysql' ) { + $this->addOption( 'LIMIT', $limit + 1 ); + } $result = $this->getResult(); $count = 0; @@ -104,6 +107,6 @@ class ApiQueryPagePropNames extends ApiQueryBase { } public function getHelpUrls() { - return 'https://www.mediawiki.org/wiki/API:Pagepropnames'; + return 'https://www.mediawiki.org/wiki/Special:MyLanguage/API:Pagepropnames'; } }