https://www.mediawiki.org/wiki/Special:Code/MediaWiki/102038

Revision: 102038
Author:   foxtrott
Date:     2011-11-04 20:14:00 +0000 (Fri, 04 Nov 2011)
Log Message:
-----------
bugfix (output escaped twice)

Modified Paths:
--------------
    trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php

Modified: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php
===================================================================
--- trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php      
2011-11-04 20:11:51 UTC (rev 102037)
+++ trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php      
2011-11-04 20:14:00 UTC (rev 102038)
@@ -236,11 +236,11 @@
                }
                if ( $inLinkType == 'button' ) {
                        $str = "<form action=\"$link_url\" method=\"get\" 
class=\"$classStr\">";
-                       $str .= Xml::element( 'input', array( 'type' => 
'submit', 'value' => $inLinkStr ) );
+                       $str .= Xml::tags( 'button', array( 'type' => 'submit', 
'value' => $inLinkStr ), $inLinkStr );
                        $str .= "$hidden_inputs</form>";
                } elseif ( $inLinkType == 'post button' ) {
                        $str = "<form action=\"$link_url\" method=\"post\" 
class=\"$classStr\">";
-                       $str .= Xml::element( 'input', array( 'type' => 
'submit', 'value' => $inLinkStr ) );
+                       $str .= Xml::tags( 'button', array( 'type' => 'submit', 
'value' => $inLinkStr ), $inLinkStr );
                        $str .= "$hidden_inputs</form>";
                } else {
                        // If a target page has been specified but it doesn't
@@ -251,7 +251,7 @@
                                        $classStr .= " new";
                                }
                        }
-                       $str = Xml::element( 'a', array( 'href' => $link_url, 
'class' => $classStr, 'title' => $inTitle ), $inLinkStr );
+                       $str = Xml::tags( 'a', array( 'href' => $link_url, 
'class' => $classStr, 'title' => $inTitle ), $inLinkStr );
                }
                // hack to remove newline from beginning of output, thanks to
                // 
http://jimbojw.com/wiki/index.php?title=Raw_HTML_Output_from_a_MediaWiki_Parser_Function


_______________________________________________
MediaWiki-CVS mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-cvs

Reply via email to