Lucas Werkmeister (WMDE) has uploaded a new change for review. ( 
https://gerrit.wikimedia.org/r/383621 )

Change subject: Add config variable for showing birthday presents
......................................................................

Add config variable for showing birthday presents

This makes it possible to enable birthday presents on Wikidata’s
birthday without a new code deployment. (Not all places that need to
access this get a config object injected, but since this is a temporary
arrangement, I think it’s acceptable for those places to use the global
CONFIG variable until the feature is made available unconditionally.)

Change-Id: I44c248ea7cf36c83b8498448f6c9d902ad0229eb
---
M wikibase/config.js
1 file changed, 4 insertions(+), 2 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/wikidata/query/gui 
refs/changes/21/383621/1

diff --git a/wikibase/config.js b/wikibase/config.js
index 427c9a6..0570047 100644
--- a/wikibase/config.js
+++ b/wikibase/config.js
@@ -44,7 +44,8 @@
                location: {
                        root: root,
                        index: root
-               }
+               },
+               showBirthdayPresents: new Date().getTime() >= Date.UTC( 2017, 
10 + 1, 29 )
        };
 
        var hostname = window.location.hostname.toLowerCase();
@@ -71,7 +72,8 @@
                        location: {
                                root: './',
                                index: './index.html'
-                       }
+                       },
+                       showBirthdayPresents: true
                } );
        }
 

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I44c248ea7cf36c83b8498448f6c9d902ad0229eb
Gerrit-PatchSet: 1
Gerrit-Project: wikidata/query/gui
Gerrit-Branch: master
Gerrit-Owner: Lucas Werkmeister (WMDE) <[email protected]>

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

Reply via email to