Index: trunk/phase3/skins/MonoBook.php |
— | — | @@ -254,7 +254,8 @@ |
255 | 255 | <div id="p-search" class="portlet"> |
256 | 256 | <h5><label for="searchInput"><?php $this->msg('search') ?></label></h5> |
257 | 257 | <div id="searchBody" class="pBody"> |
258 | | - <form action="<?php $this->text('searchaction') ?>" id="searchform"><div> |
| 258 | + <form action="<?php $this->text('wgScript') ?>" id="searchform"><div> |
| 259 | + <input type='hidden' name="title" value="<?php $this->text('searchtitle') ?>"/> |
259 | 260 | <input id="searchInput" name="search" type="text"<?php echo $this->skin->tooltipAndAccesskey('search'); |
260 | 261 | if( isset( $this->data['search'] ) ) { |
261 | 262 | ?> value="<?php $this->text('search') ?>"<?php } ?> /> |
Index: trunk/phase3/skins/Modern.php |
— | — | @@ -251,7 +251,8 @@ |
252 | 252 | <div id="p-search" class="portlet"> |
253 | 253 | <h5><label for="searchInput"><?php $this->msg('search') ?></label></h5> |
254 | 254 | <div id="searchBody" class="pBody"> |
255 | | - <form action="<?php $this->text('searchaction') ?>" id="searchform"><div> |
| 255 | + <form action="<?php $this->text('wgScript') ?>" id="searchform"><div> |
| 256 | + <input type='hidden' name="title" value="<?php $this->text('searchtitle') ?>"/> |
256 | 257 | <input id="searchInput" name="search" type="text"<?php echo $this->skin->tooltipAndAccesskey('search'); |
257 | 258 | if( isset( $this->data['search'] ) ) { |
258 | 259 | ?> value="<?php $this->text('search') ?>"<?php } ?> /> |
Index: trunk/phase3/includes/SkinTemplate.php |
— | — | @@ -259,6 +259,7 @@ |
260 | 260 | $tpl->set( "helppage", wfMsg('helppage')); |
261 | 261 | */ |
262 | 262 | $tpl->set( 'searchaction', $this->escapeSearchLink() ); |
| 263 | + $tpl->set( 'searchtitle', SpecialPage::getTitleFor('search')->getPrefixedDBKey() ); |
263 | 264 | $tpl->set( 'search', trim( $wgRequest->getVal( 'search' ) ) ); |
264 | 265 | $tpl->setRef( 'stylepath', $wgStylePath ); |
265 | 266 | $tpl->setRef( 'articlepath', $wgArticlePath ); |