Index: trunk/extensions/inputbox/inputbox.php |
— | — | @@ -71,10 +71,9 @@ |
72 | 72 | } |
73 | 73 | |
74 | 74 | function getSearchForm() { |
75 | | - global $wgUser, $wgContLang; |
| 75 | + global $wgContLang; |
| 76 | + $search = SpecialPage::getTitleFor( 'Search' )->escapeLocalUrl(); |
76 | 77 | |
77 | | - $sk=$wgUser->getSkin(); |
78 | | - $searchpath = $sk->escapeSearchLink(); |
79 | 78 | if(!$this->buttonlabel) { |
80 | 79 | $this->buttonlabel = wfMsgHtml( 'tryexact' ); |
81 | 80 | } |
— | — | @@ -88,7 +87,7 @@ |
89 | 88 | <table border="0" width="100%" cellspacing="0" cellpadding="0"> |
90 | 89 | <tr> |
91 | 90 | <td align="center" bgcolor="{$this->bgcolor}"> |
92 | | - <form name="searchbox" action="$searchpath" class="searchbox"> |
| 91 | + <form name="searchbox" action="{$search}" class="searchbox"> |
93 | 92 | <input class="searchboxInput" name="search" type="{$type}" |
94 | 93 | value="{$this->defaulttext}" size="{$this->width}" />{$this->br} |
95 | 94 | ENDFORM; |
— | — | @@ -141,10 +140,8 @@ |
142 | 141 | } |
143 | 142 | |
144 | 143 | function getSearchForm2() { |
145 | | - global $wgUser; |
146 | | - |
147 | | - $sk=$wgUser->getSkin(); |
148 | | - $searchpath = $sk->escapeSearchLink(); |
| 144 | + $search = SpecialPage::getTitleFor( 'Search' )->escapeLocalUrl(); |
| 145 | + |
149 | 146 | if(!$this->buttonlabel) { |
150 | 147 | $this->buttonlabel = wfMsgHtml( 'tryexact' ); |
151 | 148 | } |
— | — | @@ -157,7 +154,7 @@ |
158 | 155 | |
159 | 156 | $type = $this->hidden ? 'hidden' : 'text'; |
160 | 157 | $searchform=<<<ENDFORM |
161 | | -<form action="$searchpath" class="bodySearch" id="bodySearch{$this->id}"><div class="bodySearchWrap"><label for="bodySearchIput{$this->id}">{$this->labeltext}</label><input type="{$type}" name="search" size="{$this->width}" class="bodySearchIput" id="bodySearchIput{$this->id}" /><input type="submit" name="go" value="{$this->buttonlabel}" class="bodySearchBtnGo" /> |
| 158 | +<form action="$search" class="bodySearch" id="bodySearch{$this->id}"><div class="bodySearchWrap"><label for="bodySearchIput{$this->id}">{$this->labeltext}</label><input type="{$type}" name="search" size="{$this->width}" class="bodySearchIput" id="bodySearchIput{$this->id}" /><input type="submit" name="go" value="{$this->buttonlabel}" class="bodySearchBtnGo" /> |
162 | 159 | ENDFORM; |
163 | 160 | |
164 | 161 | if ( !empty( $this->fulltextbtn ) ) // this is wrong... |