BaseTemplate: Remove code for unused 'ispermalink' toolbox item
authorBartosz Dziewoński <matma.rex@gmail.com>
Tue, 27 Mar 2018 19:43:28 +0000 (21:43 +0200)
committerBartosz Dziewoński <matma.rex@gmail.com>
Tue, 27 Mar 2018 19:45:57 +0000 (21:45 +0200)
commitbdf40d7cca65a5cc6d74c8885a31e76b1cc2aee6
tree4f757e3fd75f1455b3c0a4d06fa1c9eb465d1c2c
parent71a653a495cf2de243ff25d5941ae708f0e43a80
BaseTemplate: Remove code for unused 'ispermalink' toolbox item

This code path is never used.

When introduced in 2005 (bf0d92d5 / rSVN10709), the "Permanent link"
item in the MonoBook sidebar was a link to an oldid only when viewing
the latest version of an article (using the ID 't-permalink'), and
otherwise it was a greyed out link to nowhere to indicate you're
already viewing a permanent link (using the ID 't-ispermalink').

Later, in 2007, when the behavior of "Cite this page" item (now part
of the CiteThisPage extension) was corrected for old revisions
(1a60bd4c / rSVN21819), the "greying out" of the permalink was removed
to be consistent with the new item. Only half of the feature was
removed though: permalink was no longer a link to nowhere, but the
code in MonoBook to make permalinks that are links to nowhere greyed
out (by using different ID) stayed.

This code was then dutifully preserved when BaseTemplate, MonoBook was
rewritten, and then through several refactorings.

I think we can safely remove it. Leftover styles in MonoBook are being
removed in I58aca1f4255df14d6289e167e180dad31b546a8c.

Change-Id: I2fb3d7e0ecb3bbbd0c09774e2d86f86502a48bf1
includes/skins/BaseTemplate.php
maintenance/dictionary/mediawiki.dic