Page MenuHomePhabricator

Wikidata logo incorrect
Closed, ResolvedPublic

Description

For example https://incubator.wikimedia.org/wiki/Wp/zh has an English Wikipedia logo instead of Wikidata's.

Event Timeline

bzimport raised the priority of this task from to Low.Nov 22 2014, 2:00 AM
bzimport set Reference to bz52214.
bzimport added a subscriber: Unknown Object (MLST).

ebe123_wiki wrote:

Patch to add exception

Added a "if" for $site Wikidata to give "//upload.wikimedia.org/wikipedia/commons/e/e4/Wikidata-logo-en-135px.png" as an image

Attached:

The proposed patch is a hack and not an ideal fix.

The actual problem is that in InitialiseSettings.php Wikidata uses both 'wikidata' and 'wikidatawiki' as keys, whereas the Incubator extension depends on 'wikidatawiki' as key (like 'commonswiki' etc). It takes the key from $wmincMultilingualProjects and adds 'wiki' to it.

ebe123_wiki wrote:

I saw that studying the code yesterday.

  • Bug 67519 has been marked as a duplicate of this bug. ***
Glaisher removed a project: Patch-For-Review.
Glaisher set Security to None.

To be honest that entire function looks like a hack.

Change 221405 had a related patch set uploaded (by Alex Monk):
Set wikidata's logo specifically for wikidatawiki

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

Change 221405 merged by jenkins-bot:
Set wikidata's logo specifically for wikidatawiki

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

Krenair claimed this task.

Meh. That's a really silly workaround.