r53086 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53085‎ | r53086 | r53087 >
Date:23:16, 10 July 2009
Author:catrope
Status:deferred
Tags:
Comment:
OptIn: Don't show the personal tools link on the OptIn special page itself
Modified paths:
  • /trunk/extensions/UsabilityInitiative/OptIn/OptIn.hooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/OptIn/OptIn.hooks.php
@@ -33,7 +33,9 @@
3434 $wgOptInAlwaysShowPersonalLink
3535 ) &&
3636 // And the link is allowed to be shown
37 - !$wgOptInNeverShowPersonalLink
 37+ !$wgOptInNeverShowPersonalLink &&
 38+ // We're not at the OptIn page
 39+ current( explode( '/', $title->getText() ) ) !== SpecialPage::getLocalNameFor( 'OptIn' )
3840 ) {
3941 // Loads opt-in messages
4042 wfLoadExtensionMessages( 'OptIn' );

Status & tagging log