r34222 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r34221‎ | r34222 | r34223 >
Date:18:26, 4 May 2008
Author:nikerabbit
Status:old
Tags:
Comment:
* Fix form submission
Modified paths:
  • /trunk/extensions/APC/APCCacheMode.php (modified) (history)

Diff [purge]

Index: trunk/extensions/APC/APCCacheMode.php
@@ -230,13 +230,14 @@
231231 }
232232
233233 protected function options() {
234 - global $wgLang;
 234+ global $wgLang, $wgScript;
235235
236236 $s =
237237 Xml::openElement( 'fieldset' ) .
238238 Xml::element( 'legend', null, wfMsg( 'viewapc-ls-options-legend' ) ) .
239 - Xml::openElement( 'form', array( 'action' => $this->title->getLocalURl() ) );
 239+ Xml::openElement( 'form', array( 'action' => $wgScript ) );
240240
 241+ $s .= Xml::hidden( 'title', $this->title->getPrefixedText() );
241242 foreach ( $this->opts->getUnconsumedValues() as $key => $value ) {
242243 $s .= Xml::hidden( $key, $value );
243244 }

Status & tagging log