Merging Vector's navigation_urls and SkinTemplate's content_actions code into content...
authorDaniel Friesen <dantman@users.mediawiki.org>
Fri, 31 Dec 2010 23:30:00 +0000 (23:30 +0000)
committerDaniel Friesen <dantman@users.mediawiki.org>
Fri, 31 Dec 2010 23:30:00 +0000 (23:30 +0000)
commitc510db2665c0f580d636f4c3aab72ac20722262b
tree734bed357408ceb30ab25c671c78e18605336814
parent2cc065167a0a42b07accb36031bdccfbc0f44d65
Merging Vector's navigation_urls and SkinTemplate's content_actions code into content_navigation. content_actions is now built by folding content_navigation and cleaning it up a bit.
content_actions hooks no longer work and have been dropped from the code, the hooks that affected vector before now affect all skins.
A few logic changes were made to make for a clean merge:
- vector was using vector-???-??? messages while SkinTemplate was using '???' messages. So as a side effect of merging that together all skins now support messages like '$skinname-view-history' which will fallback to the standard message if not defined.
- For MediaWiki: pages where the page does not exist but the message does in the i18n system SkinTemplate displayed "Edit" while Vector displayed "Create"; All skins now display "Edit".
- For users without undelete permissions SkinTemplate displayed an "Undelete" tab if the user had deletedhistory and deletedtext permissions. Vector would only display the tab for users with both deletedhistory and undelete permissions; The new behavior in all skins is to always display a tab if you have deletedhistory (since Special:Undelete will always have something to display) but display a "View ... deleted" instead of "Undelete" message if you do not have undelete permissions.
- Skins no longer need to hardcode tests for the &action= to decide if they should ignore the accesskey on some tabs, tabs which should not have an accesskey in the current page now have a "tooltiponly" key set to true.
docs/hooks.txt
includes/GlobalFunctions.php
includes/SkinTemplate.php
languages/messages/MessagesEn.php
maintenance/language/messages.inc
skins/MonoBook.php
skins/Vector.php