Last modified: 2009-10-28 19:06:46 UTC

Wikimedia Bugzilla is closed!

Wikimedia migrated from Bugzilla to Phabricator. Bug reports are handled in Wikimedia Phabricator.
This static website is read-only and for historical purposes. It is not possible to log in and except for displaying bug reports and their history, links might be broken. See T18366, the corresponding Phabricator task for complete and up-to-date bug report information.
Bug 16366 - ConfirmAccount - Special:RequestAccount looks bad if $wgAccountRequestToS is false
ConfirmAccount - Special:RequestAccount looks bad if $wgAccountRequestToS is ...
Status: RESOLVED FIXED
Product: MediaWiki extensions
Classification: Unclassified
ConfirmAccount (Other open bugs)
unspecified
All All
: Normal enhancement (vote)
: ---
Assigned To: Aaron Schulz
: easy
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-11-17 07:13 UTC by brianna.laugher
Modified: 2009-10-28 19:06 UTC (History)
0 users

See Also:
Web browser: ---
Mobile Platform: ---
Assignee Huggle Beta Tester: ---


Attachments

Description brianna.laugher 2008-11-17 07:13:20 UTC
Hi,

I installed ConfirmAccount (1.46) on a wiki (1.14alpha (r43514)). In LocalSettings.php I have 

 $wgAccountRequestToS = false;

The Special:RequestAccount form looks bad because there is this third fieldset with the legend "Terms of Service" and nothing inside it. Because the fieldset doesn't have an id I can't hide it with CSS. (Note: Would be nice to add some CSS ids generally. :))

But this can be fixed by just moving three lines:

                if( $wgAccountRequestToS ) {
                $form .= '<fieldset>';
                $form .= '<legend>' . wfMsgHtml('requestaccount-leg-tos') . '</legend>';

                        $form .= "<p>".Xml::check( 'wpToS', $this->mToS, array('id' => 'wpToS') ).
                                ' <label for="wpToS">'.wfMsgExt( 'requestaccount-tos', array('parseinline') )."</label></p>\n";
                $form .= '</fieldset>';
                }

Currently the fieldset and legend lines are outside the if block. They just need to be moved inside it. Then it's all good.


PS> ConfirmAccount is missing from the Bugzilla list.
Comment 1 Aaron Schulz 2008-11-17 07:42:46 UTC
Fixed in r43597

Note You need to log in before you can comment on or make changes to this bug.


Navigation
Links