r83675 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r83674‎ | r83675 | r83676 >
Date:22:27, 10 March 2011
Author:yaron
Status:deferred
Tags:
Comment:
Fixed 'button' option for #formlink
Modified paths:
  • /trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php (modified) (history)

Diff [purge]

Index: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php
@@ -225,7 +225,7 @@
226226 $str .= Xml::element( 'input', array(
227227 'type' => 'button',
228228 'value' => $inLinkStr,
229 - 'onclick' => 'window.location.href=' . $link_url
 229+ 'onclick' => "window.location.href='$link_url'",
230230 ) ) . "</form>";
231231 } elseif ( $inLinkType == 'post button' ) {
232232 $str = "<form action=\"$link_url\" method=\"post\" $popupClassString>";