aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorUmherirrender <umherirrender_de.wp@web.de>2019-10-12 10:40:22 +0200
committerReedy <reedy@wikimedia.org>2019-10-14 12:36:22 +0000
commitb1972f3110360558d37b813a842fafff8a70abb0 (patch)
tree2b0ff9819d267540da1cc5a0d035a7b8db9410d4
parent3c2e8a0f6176f9b8215b274ff3565d42030836be (diff)
downloadmediawikicore-b1972f3110360558d37b813a842fafff8a70abb0.tar.gz
mediawikicore-b1972f3110360558d37b813a842fafff8a70abb0.zip
Run executeGenderCacheFromResultWrapper with titles in prop=linkshere
The gender information are only needed when outputting titles, in other cases (when only pageids are selected) it results in a undefined property Bug: T235316 Follow-Up: I911dcb160a7b169091b9e8f66fb3908d0f2a1ba4 Change-Id: I5c9a501919914afd38343551c755126c98d457e6
-rw-r--r--includes/api/ApiQueryBacklinksprop.php4
1 files changed, 3 insertions, 1 deletions
diff --git a/includes/api/ApiQueryBacklinksprop.php b/includes/api/ApiQueryBacklinksprop.php
index 022fd9b848cd..31de7d003ac0 100644
--- a/includes/api/ApiQueryBacklinksprop.php
+++ b/includes/api/ApiQueryBacklinksprop.php
@@ -286,7 +286,9 @@ class ApiQueryBacklinksprop extends ApiQueryGeneratorBase {
$res = $this->select( __METHOD__ );
if ( is_null( $resultPageSet ) ) {
- $this->executeGenderCacheFromResultWrapper( $res, __METHOD__ );
+ if ( $fld_title ) {
+ $this->executeGenderCacheFromResultWrapper( $res, __METHOD__ );
+ }
$count = 0;
foreach ( $res as $row ) {