Make remote content skin tabs non-File specific
authorKunal Mehta <legoktm@member.fsf.org>
Fri, 16 Sep 2016 01:22:36 +0000 (18:22 -0700)
committerTim Starling <tstarling@wikimedia.org>
Tue, 6 Dec 2016 23:32:21 +0000 (23:32 +0000)
commit6da7238c37487a41f1c9e15716c2886e6ec8c973
treef07912e8f43fa1069cef5e270a98372332dd975b
parent127c0072c4d29902fbf2dcfd63464042462270ed
Make remote content skin tabs non-File specific

This is one of the steps for implementing shadow namespaces -
generalizing foreign file specific code to be usable for any namespace.
This allows us to no-longer special case WikiFilePage in SkinTemplate
when building content_navigation, and will let GlobalUserPage to add
similar tabs just by overriding the same functions.

The new WikiPage::getWikiDisplayName() and WikiPage::getSourceURL()
functions will return expected values for both local and remote content.

Change-Id: Ib3d7dcbefe95da351872e63f306799eef83e00a7
includes/page/WikiFilePage.php
includes/page/WikiPage.php
includes/skins/SkinTemplate.php