John Erling Blad has submitted this change and it was merged.

Change subject: ViewEntityAction on non-existing pages displays right link to 
create entity
......................................................................


ViewEntityAction on non-existing pages displays right link to create entity

Before when on a non-existing page using an entity content model, the page to 
create a new one would refer to Special:CreateItem. This is changed now and in 
case of entity type query there is no link displayed at all since we do not 
have one currently.
Added a new function EntityHandler::getSpecialPageForCreation() which returns 
the special page for creating an entity of the kind.

Change-Id: Iff21b706f73c2e8e8c58189c5e3e44a1c53fc8f8
---
M repo/Wikibase.i18n.php
M repo/includes/actions/ViewEntityAction.php
M repo/includes/content/EntityHandler.php
M repo/includes/content/ItemHandler.php
M repo/includes/content/PropertyHandler.php
M repo/tests/phpunit/includes/content/EntityHandlerTest.php
6 files changed, 64 insertions(+), 12 deletions(-)

Approvals:
  John Erling Blad: Verified; Looks good to me, approved


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

Gerrit-MessageType: merged
Gerrit-Change-Id: Iff21b706f73c2e8e8c58189c5e3e44a1c53fc8f8
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Wikibase
Gerrit-Branch: master
Gerrit-Owner: Daniel Werner <daniel.wer...@wikimedia.de>
Gerrit-Reviewer: Daniel Kinzler <daniel.kinz...@wikimedia.de>
Gerrit-Reviewer: Jeroen De Dauw <jeroended...@gmail.com>
Gerrit-Reviewer: John Erling Blad <john.b...@wikimedia.de>

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

Reply via email to