r45214 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r45213‎ | r45214 | r45215 >
Date:03:31, 31 December 2008
Author:rainman
Status:ok
Tags:
Comment:
Send 'prefix' GET param if one is defined in the inputbox. This will be handled by Special:Search
Modified paths:
  • /trunk/extensions/InputBox/InputBox.classes.php (modified) (history)

Diff [purge]

Index: trunk/extensions/InputBox/InputBox.classes.php
@@ -29,6 +29,7 @@
3030 private $mID = '';
3131 private $mInline = false;
3232 private $mHideGo = false;
 33+ private $mPrefix = '';
3334
3435 /* Functions */
3536
@@ -103,6 +104,17 @@
104105 'size' => $this->mWidth,
105106 )
106107 );
 108+
 109+ if( $this->mPrefix != '' ){
 110+ $htmlOut .= Xml::element( 'input',
 111+ array(
 112+ 'name' => 'prefix',
 113+ 'type' => 'hidden',
 114+ 'value' => $this->mPrefix,
 115+ )
 116+ );
 117+ }
 118+
107119 $htmlOut .= $this->mBR;
108120
109121 // Determine namespace checkboxes
@@ -450,6 +462,7 @@
451463 'id' => 'mID',
452464 'inline' => 'mInline',
453465 'hidego' => 'mHideGo',
 466+ 'prefix' => 'mPrefix',
454467 );
455468 foreach ( $options as $name => $var ) {
456469 if ( isset( $values[$name] ) ) {

Status & tagging log