r47516 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r47515‎ | r47516 | r47517 >
Date:21:48, 19 February 2009
Author:werdna
Status:ok
Tags:
Comment:
Display a message when logging in/out if wgCentralAuthAutoLoginWikis is not filled (but wgCentralAuthCookies is set).
Modified paths:
  • /trunk/extensions/CentralAuth/CentralAuth.i18n.php (modified) (history)
  • /trunk/extensions/CentralAuth/CentralAuthHooks.php (modified) (history)

Diff [purge]

Index: trunk/extensions/CentralAuth/CentralAuthHooks.php
@@ -99,9 +99,11 @@
100100 return true;
101101 }
102102
103 - // On other wikis
 103+ // On other domains
104104 global $wgCentralAuthAutoLoginWikis;
105105 if ( !$wgCentralAuthAutoLoginWikis ) {
 106+ wfLoadExtensionMessages( 'SpecialCentralAuth' );
 107+ $inject_html .= wfMsgExt( 'centralauth-login-no-others', 'parse' );
106108 return true;
107109 }
108110
@@ -216,9 +218,13 @@
217219
218220 static function onUserLogoutComplete( &$user, &$inject_html, $userName ) {
219221 global $wgCentralAuthCookies, $wgCentralAuthAutoLoginWikis;
220 - if( !$wgCentralAuthCookies || !$wgCentralAuthAutoLoginWikis ) {
 222+ if( !$wgCentralAuthCookies ) {
221223 // Nothing to do.
222224 return true;
 225+ } elseif ( !$wgCentralAuthAutoLoginWikis ) {
 226+ wfLoadExtensionMessages( 'SpecialCentralAuth' );
 227+ $inject_html .= wfMsgExt( 'centralauth-logout-no-others', 'parse' );
 228+ return true;
223229 }
224230
225231 $centralUser = CentralAuthUser::getInstance( $user );
Index: trunk/extensions/CentralAuth/CentralAuth.i18n.php
@@ -217,8 +217,10 @@
218218 // Other messages
219219 'centralauth-invalid-wiki' => 'No such wiki database: $1',
220220 'centralauth-account-exists' => 'Cannot create account: the requested username is already taken in the unified login system.',
221 - 'centralauth-login-progress' => 'Logging you in to projects of {{MediaWiki:Centralauth-groupname}}:',
222 - 'centralauth-logout-progress' => 'Logging you out from other projects of {{MediaWiki:Centralauth-groupname}}:',
 221+ 'centralauth-login-progress' => 'Logging you in to projects of {{int:Centralauth-groupname}}:',
 222+ 'centralauth-logout-progress' => 'Logging you out from other projects of {{int:Centralauth-groupname}}:',
 223+ 'centralauth-login-no-others' => 'You have been automatically logged into other projects of {{int:Centralauth-groupname}}.',
 224+ 'centralauth-logout-no-others' => 'You have been automatically logged out of other projects of {{int:Centralauth-groupname}}.',
223225
224226 // Logging
225227 'centralauth-log-name' => 'Global account log',

Follow-up revisions

RevisionCommit summaryAuthorDate
r47898change parse to parsemag for messages added in r47516; parse broke on API log...mrzman21:40, 28 February 2009

Status & tagging log