From: Brion Vibber Date: Wed, 27 Feb 2008 23:59:21 +0000 (+0000) Subject: * (bug 13135) Special:Userrights now passes IDs through form submission X-Git-Tag: 1.31.0-rc.0~49316 X-Git-Url: https://git.cyclocoop.org/%242?a=commitdiff_plain;h=a2e9f24ef92207573fb2c92e408a0b00c8f263e2;p=lhc%2Fweb%2Fwiklou.git * (bug 13135) Special:Userrights now passes IDs through form submission to allow functionality on not-quite-right usernames --- diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 47b193de50..98588c99ca 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -51,6 +51,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 12723) OpenSearch description name now uses more compact language code to avoid passing the length limit as often, is customizable per site via 'opensearch-desc' message. +* (bug 13135) Special:Userrights now passes IDs through form submission + to allow functionality on not-quite-right usernames === API changes in 1.13 === diff --git a/includes/SpecialUserrights.php b/includes/SpecialUserrights.php index 48fb362801..df3dc26820 100644 --- a/includes/SpecialUserrights.php +++ b/includes/SpecialUserrights.php @@ -333,8 +333,8 @@ class UserrightsPage extends SpecialPage { } $wgOut->addHTML( Xml::openElement( 'form', array( 'method' => 'post', 'action' => $this->getTitle()->escapeLocalURL(), 'name' => 'editGroup' ) ) . - Xml::hidden( 'user', $user->getName() ) . - Xml::hidden( 'wpEditToken', $wgUser->editToken( $user->getName() ) ) . + Xml::hidden( 'user', $this->mTarget ) . + Xml::hidden( 'wpEditToken', $wgUser->editToken( $this->mTarget ) ) . Xml::openElement( 'fieldset' ) . Xml::element( 'legend', array(), wfMsg( 'userrights-editusergroup' ) ) . wfMsgExt( 'editinguser', array( 'parse' ),