r53290 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r53289‎ | r53290 | r53291 >
Date:06:26, 15 July 2009
Author:nikerabbit
Status:resolved (Comments)
Tags:
Comment:
Add hidden title, would otherwise go to the main page with ugly urls for some reason
Modified paths:
  • /trunk/phase3/includes/specials/SpecialAllmessages.php (modified) (history)

Diff [purge]

Index: trunk/phase3/includes/specials/SpecialAllmessages.php
@@ -52,6 +52,7 @@
5353 ksort( $languages );
5454
5555 $out = "<form method=\"get\" action=\"$url\"><fieldset>\n" .
 56+ Xml::hidden( 'title', $this->getTitle() ) .
5657 Xml::element( 'legend', null, wfMsg( 'allmessages' ) ) . "<table><tr>\n" .
5758 "<td class=\"mw-label\">" .
5859 Xml::label( wfMsg('allmessages-prefix'), 'am-form-prefix' ) .

Follow-up revisions

RevisionCommit summaryAuthorDate
r73332Fix for r53290nikerabbit15:35, 19 September 2010

Comments

#Comment by Juliano (talk | contribs)   14:49, 19 September 2010

->__toString() is broken in PHP 5.1.6 (which is still above the minimum requirements for MediaWiki). The noticeable effect is that it will render a hidden input field with name="title" value="Object", and a PHP Error in the logs.

Please, make add a ->getPrefixedText().

Status & tagging log