r66054 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r66053‎ | r66054 | r66055 >
Date:22:41, 7 May 2010
Author:tparscal
Status:ok
Tags:
Comment:
Added grepable message names where dynamic messages are being used.
Modified paths:
  • /trunk/extensions/UsabilityInitiative/PrefSwitch/PrefSwitch.hooks.php (modified) (history)
  • /trunk/extensions/UsabilityInitiative/PrefSwitch/SpecialPrefSwitch.php (modified) (history)

Diff [purge]

Index: trunk/extensions/UsabilityInitiative/PrefSwitch/SpecialPrefSwitch.php
@@ -259,6 +259,7 @@
260260 );
261261 break;
262262 }
 263+ // Uses prefswitch-main-anon, prefswitch-main-on and prefswitch-main-off
263264 $wgOut->addWikiMsgArray( 'prefswitch-main-' . $state, $parameters, array( 'parse' ) );
264265 }
265266 }
Index: trunk/extensions/UsabilityInitiative/PrefSwitch/PrefSwitch.hooks.php
@@ -32,7 +32,7 @@
3333 $query = array( 'from' => $title->getPrefixedDBKey(), 'fromquery' => wfArrayToCGI( $fromquery ) );
3434 }
3535 $state = SpecialPrefSwitch::userState( $wgUser );
36 - // Inserts a link into personal tools
 36+ // Inserts a link into personal tools - Uses prefswitch-link-anon, prefswitch-link-on and prefswitch-link-off
3737 $personal_urls = array_merge(
3838 array(
3939 "prefswitch-link-{$state}" => array(

Status & tagging log