*(bug 5426) Lowercase treatment of titles in rights log leads to broken links on...
authorRob Church <robchurch@users.mediawiki.org>
Sat, 15 Apr 2006 15:18:33 +0000 (15:18 +0000)
committerRob Church <robchurch@users.mediawiki.org>
Sat, 15 Apr 2006 15:18:33 +0000 (15:18 +0000)
RELEASE-NOTES
includes/LogPage.php
languages/Messages.php

index fec035c..19a9bb5 100644 (file)
@@ -72,7 +72,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * installer: cleanly outputbuffer when dieing out
 * Add $wgReservedUsernames configuration directive to block account creation/use
 * (bug 5576) Remove debugging hack in session check
-
+* (bug 5426) Lowercase treatment of titles in rights log leads to broken links on Special:Log
 
 == Compatibility ==
 
index 432f719..cdd7840 100644 (file)
@@ -151,7 +151,8 @@ class LogPage {
         * @static
         */
        function actionText( $type, $action, $title = NULL, $skin = NULL, $params = array(), $filterWikilinks=false, $translate=false ) {
-               global $wgLang;
+               global $wgLang, $wgContLang;
+               wfDebug( "LogPage::actionText called with title = {$title}, action = {$action}\n" );
                static $actions = array(
                        'block/block'       => 'blocklogentry',
                        'block/unblock'     => 'unblocklogentry',
@@ -194,6 +195,10 @@ class LogPage {
                                                                $titleLink .= ' (' . $skin->makeKnownLinkObj( Title::makeTitle( NS_SPECIAL, 'Contributions/' . $title->getDBkey() ), wfMsg( 'contribslink' ) ) . ')';
                                                        }
                                                        break;
+                                               case 'rights':
+                                                       $text = $wgContLang->ucfirst( $title->getText() );
+                                                       $titleLink = $skin->makeLinkObj( Title::makeTitle( NS_USER, $text ) );
+                                                       break;
                                                default:
                                                        $titleLink = $skin->makeLinkObj( $title );
                                        }
index 639a77d..6334553 100644 (file)
@@ -1334,7 +1334,7 @@ Type the name of the user in the box and press the button to make the user an ad
 'setstewardflag'    => 'Set steward flag',
 'bureaucratlog'                => 'Bureaucrat_log',
 'rightslogtext'                => 'This is a log of changes to user rights.',
-'bureaucratlogentry'   => "Changed group membership for $1 from $2 to $3",
+'bureaucratlogentry'   => 'changed group membership for $1 from $2 to $3',
 'rights'                       => 'Rights:',
 'set_user_rights'      => 'Set user rights',
 'user_rights_set'      => "<b>User rights for \"$1\" updated</b>",