Index: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php |
— | — | @@ -236,11 +236,11 @@ |
237 | 237 | } |
238 | 238 | if ( $inLinkType == 'button' ) { |
239 | 239 | $str = "<form action=\"$link_url\" method=\"get\" class=\"$classStr\">"; |
240 | | - $str .= Xml::element( 'input', array( 'type' => 'submit', 'value' => $inLinkStr ) ); |
| 240 | + $str .= Xml::tags( 'button', array( 'type' => 'submit', 'value' => $inLinkStr ), $inLinkStr ); |
241 | 241 | $str .= "$hidden_inputs</form>"; |
242 | 242 | } elseif ( $inLinkType == 'post button' ) { |
243 | 243 | $str = "<form action=\"$link_url\" method=\"post\" class=\"$classStr\">"; |
244 | | - $str .= Xml::element( 'input', array( 'type' => 'submit', 'value' => $inLinkStr ) ); |
| 244 | + $str .= Xml::tags( 'button', array( 'type' => 'submit', 'value' => $inLinkStr ), $inLinkStr ); |
245 | 245 | $str .= "$hidden_inputs</form>"; |
246 | 246 | } else { |
247 | 247 | // If a target page has been specified but it doesn't |
— | — | @@ -251,7 +251,7 @@ |
252 | 252 | $classStr .= " new"; |
253 | 253 | } |
254 | 254 | } |
255 | | - $str = Xml::element( 'a', array( 'href' => $link_url, 'class' => $classStr, 'title' => $inTitle ), $inLinkStr ); |
| 255 | + $str = Xml::tags( 'a', array( 'href' => $link_url, 'class' => $classStr, 'title' => $inTitle ), $inLinkStr ); |
256 | 256 | } |
257 | 257 | // hack to remove newline from beginning of output, thanks to |
258 | 258 | // http://jimbojw.com/wiki/index.php?title=Raw_HTML_Output_from_a_MediaWiki_Parser_Function |