Adamw has uploaded a new change for review.

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


Change subject: Allocations function requires device
......................................................................

Allocations function requires device

Change-Id: I4b5435c2f761079dbe09d3ed2d0a410f75f01275
---
M special/SpecialGlobalAllocation.php
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CentralNotice 
refs/changes/65/59365/1

diff --git a/special/SpecialGlobalAllocation.php 
b/special/SpecialGlobalAllocation.php
index fca0787..e6ecd1c 100644
--- a/special/SpecialGlobalAllocation.php
+++ b/special/SpecialGlobalAllocation.php
@@ -413,9 +413,11 @@
                // are identical because of e.g. z-index
                foreach ( array( true, false ) as $isAnon ) {
                        for ( $bucket = 0; $bucket < $numBuckets; $bucket++ ) {
+                               $device = 'desktop'; //XXX
                                $variations[$isAnon][$bucket] = 
ApiCentralNoticeAllocations::getAllocationInformation(
                                        $project, $country, $language,
                                        $isAnon ? 'true' : 'false',
+                                       $device,
                                        $bucket
                                );
                                $allocSignatures = array();

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I4b5435c2f761079dbe09d3ed2d0a410f75f01275
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CentralNotice
Gerrit-Branch: master
Gerrit-Owner: Adamw <[email protected]>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to