(bug 42337) Simplify "my talk" link logic in personal tools
authorAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Thu, 22 Nov 2012 21:57:02 +0000 (23:57 +0200)
committerAmir E. Aharoni <amir.aharoni@mail.huji.ac.il>
Thu, 22 Nov 2012 21:57:02 +0000 (23:57 +0200)
commitf31209dfb307ec2bac20107e788578b762f70e89
tree27140a623c290658c7e6b1bfaf69f5aa38740274
parent9537f70f5e32ad28b3aee16560ed0dcef550d749
(bug 42337) Simplify "my talk" link logic in personal tools

Change I822a7390 introduced a somewhat complex way to display
the "talk" link in parentheses after the username. It would only
work in Vector, and it broke the display in RTL wikis, because
it hacked into the personal links array.

This change attempts to make it more robust, by keeping the
array intact and adding the parentheses to the mytalk item
as a special case in SkinTemplate::makeListItem(). This fixes
the display in RTL wikis and allows the parentheses
to be displayed in all skins.

This commit also eliminates the global $wgVectorCombineUserTalk,
which is not needed any more.

Change-Id: I36ec3bec89a17cab3e4fc56ccf5038f7df93d213
includes/DefaultSettings.php
includes/SkinTemplate.php
skins/Vector.php