EBernhardson has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/324827

Change subject: Fix missing page images everywhere
......................................................................

Fix missing page images everywhere

Page images was updated to have a split between the 'best' page
image, and the best free page image. Unfortunately the deployment
plan didn't take into account that the default 'free' would be
pointing to an unpopulated page prop, which will not be populated
until LinksUpdate has run for every page on every wiki which could
take weeks or months.

To restore some semblance of order, make the default point at the
currently populated field. A followup will need to be done to
populate the appropriate field.

Bug: T152155
Change-Id: I1d35e965dc37c8c4ecdcc43313b3198e951e1978
---
M includes/ApiQueryPageImages.php
1 file changed, 1 insertion(+), 1 deletion(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/PageImages 
refs/changes/27/324827/1

diff --git a/includes/ApiQueryPageImages.php b/includes/ApiQueryPageImages.php
index 5de31a4..a83f79d 100644
--- a/includes/ApiQueryPageImages.php
+++ b/includes/ApiQueryPageImages.php
@@ -250,7 +250,7 @@
                        'license' => [
                                ApiBase::PARAM_TYPE => [ 
self::PARAM_LICENSE_FREE, self::PARAM_LICENSE_ANY ],
                                ApiBase::PARAM_ISMULTI => false,
-                               ApiBase::PARAM_DFLT => self::PARAM_LICENSE_FREE,
+                               ApiBase::PARAM_DFLT => self::PARAM_LICENSE_ANY,
                        ],
                        'continue' => [
                                ApiBase::PARAM_TYPE => 'integer',

-- 
To view, visit https://gerrit.wikimedia.org/r/324827
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I1d35e965dc37c8c4ecdcc43313b3198e951e1978
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/PageImages
Gerrit-Branch: master
Gerrit-Owner: EBernhardson <ebernhard...@wikimedia.org>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to