Index: trunk/extensions/SemanticForms/specials/SF_CreateCategory.php |
— | — | @@ -89,7 +89,7 @@ |
90 | 90 | <form action="" method="get"> |
91 | 91 | |
92 | 92 | END; |
93 | | - $text .= "\t" . Html::Hidden( 'title', "$special_namespace:CreateCategory" ) . "\n"; |
| 93 | + $text .= SFFormUtils::hiddenFieldHTML( 'title', "$special_namespace:CreateCategory" ); |
94 | 94 | $text .= <<<END |
95 | 95 | <p>$name_label <input size="25" name="category_name" value="" /> |
96 | 96 | <span style="color: red;">$category_name_error_str</span> |
Index: trunk/extensions/SemanticForms/specials/SF_FormStart.php |
— | — | @@ -111,9 +111,9 @@ |
112 | 112 | $text .= SFUtils::formDropdownHTML(); |
113 | 113 | |
114 | 114 | $text .= "\t</p>\n"; |
115 | | - $text .= "\t" . Html::Hidden( 'namespace', $target_namespace ) . "\n"; |
116 | | - $text .= "\t" . Html::Hidden( 'super_page', $super_page ) . "\n"; |
117 | | - $text .= "\t" . Html::Hidden( 'params', $params ) . "\n"; |
| 115 | + $text .= SFFormUtils::hiddenFieldHTML( 'namespace', $target_namespace ); |
| 116 | + $text .= SFFormUtils::hiddenFieldHTML( 'super_page', $super_page ); |
| 117 | + $text .= SFFormUtils::hiddenFieldHTML( 'params', $params ); |
118 | 118 | $text .= "\t" . Xml::element( 'input', array( 'type' => 'submit', 'value' => wfMsg( 'sf_formstart_createoredit' ) ) ) . "\n"; |
119 | 119 | $text .= "\t</form>\n"; |
120 | 120 | } |
Index: trunk/extensions/SemanticForms/specials/SF_CreateForm.php |
— | — | @@ -221,7 +221,7 @@ |
222 | 222 | |
223 | 223 | $text = "\t" . '<form action="" method="post">' . "\n"; |
224 | 224 | // Set 'title' field, in case there's no URL niceness |
225 | | - $text .= "\t" . Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) . "\n"; |
| 225 | + $text .= SFFormUtils::hiddenFieldHTML( 'title', $this->getTitle()->getPrefixedText() ); |
226 | 226 | $text .= "\t<p>" . wfMsg( 'sf_createform_nameinput' ) . ' ' . wfMsg( 'sf_createform_nameinputdesc' ) . ' <input size=25 name="form_name" value="' . $form_name . '" />'; |
227 | 227 | if ( ! empty( $form_name_error_str ) ) |
228 | 228 | $text .= "\t" . Xml::element( 'font', array( 'color' => 'red' ), $form_name_error_str ); |
Index: trunk/extensions/SemanticForms/specials/SF_CreateClass.php |
— | — | @@ -219,7 +219,7 @@ |
220 | 220 | $text .= Xml::tags( 'p', null, $add_another_button ) . "\n"; |
221 | 221 | // Set 'title' as hidden field, in case there's no URL niceness |
222 | 222 | $cc = $this->getTitle(); |
223 | | - $text .= Html::Hidden( 'title', SFUtils::titleURLString( $cc ) ) . "\n"; |
| 223 | + $text .= SFFormUtils::hiddenFieldHTML( 'title', SFUtils::titleURLString( $cc ) ); |
224 | 224 | $text .= Xml::element( 'input', |
225 | 225 | array( |
226 | 226 | 'type' => 'submit', |
Index: trunk/extensions/SemanticForms/specials/SF_RunQuery.php |
— | — | @@ -117,7 +117,7 @@ |
118 | 118 | <form id="sfForm" name="createbox" action="$action" method="post" class="createbox"> |
119 | 119 | |
120 | 120 | END; |
121 | | - $text .= "\t" . Html::Hidden( 'query', 'true' ) . "\n"; |
| 121 | + $text .= SFFormUtils::hiddenFieldHTML( 'query', 'true' ); |
122 | 122 | $text .= $form_text; |
123 | 123 | } |
124 | 124 | if ( $embedded ) { |
Index: trunk/extensions/SemanticForms/specials/SF_CreateTemplate.php |
— | — | @@ -193,7 +193,7 @@ |
194 | 194 | |
195 | 195 | $text .= ' <form id="createTemplateForm" action="" method="post">' . "\n"; |
196 | 196 | // Set 'title' field, in case there's no URL niceness |
197 | | - $text .= "\t" . Html::hidden( 'title', $this->getTitle()->getPrefixedText() ) . "\n"; |
| 197 | + $text .= SFFormUtils::hiddenFieldHTML( 'title', $this->getTitle()->getPrefixedText() ); |
198 | 198 | $text .= "\t<p id=\"template_name_p\">" . wfMsg( 'sf_createtemplate_namelabel' ) . ' <input size="25" id="template_name" name="template_name" /></p>' . "\n"; |
199 | 199 | $text .= "\t<p>" . wfMsg( 'sf_createtemplate_categorylabel' ) . ' <input size="25" name="category" /></p>' . "\n"; |
200 | 200 | $text .= "\t<fieldset>\n"; |
Index: trunk/extensions/SemanticForms/includes/SF_FormInputs.php |
— | — | @@ -683,7 +683,7 @@ |
684 | 684 | $selectAttrs['disabled'] = 'disabled'; |
685 | 685 | } |
686 | 686 | $text = Xml::tags( 'select', $selectAttrs, $optionsText ); |
687 | | - $text .= "\t" . Html::Hidden( $input_name . '[is_list]', 1 ) . "\n"; |
| 687 | + $text .= SFFormUtils::hiddenFieldHTML( $input_name . '[is_list]', 1 ); |
688 | 688 | if ( $is_mandatory ) { |
689 | 689 | $text = Xml::tags( 'span', array( 'class' => 'inputSpan mandatoryFieldSpan' ), $text ); |
690 | 690 | } |
— | — | @@ -795,7 +795,7 @@ |
796 | 796 | } |
797 | 797 | } |
798 | 798 | |
799 | | - $text .= "\n" . Html::Hidden( $input_name . '[is_list]', 1 ) . "\n"; |
| 799 | + $text .= SFFormUtils::hiddenFieldHTML( $input_name . '[is_list]', 1 ); |
800 | 800 | $outerSpanAttrs = array( 'id' => $outerSpanID, 'class' => $outerSpanClass ); |
801 | 801 | $text = "\t" . Xml::tags( 'span', $outerSpanAttrs, $text ) . "\n"; |
802 | 802 | |
— | — | @@ -1633,7 +1633,7 @@ |
1634 | 1634 | |
1635 | 1635 | $text = '<div style="overflow: auto; padding: 5px; border: 1px #aaaaaa solid; max-height: ' . $height . 'px; width: ' . $width . 'px;">' . $tree . '</div>'; |
1636 | 1636 | |
1637 | | - $text .= "\t" . Html::Hidden( $input_name . '[is_list]', 1 ) . "\n"; |
| 1637 | + $text .= SFFormUtils::hiddenFieldHTML( $input_name . '[is_list]', 1 ); |
1638 | 1638 | $spanClass = "checkboxesSpan"; |
1639 | 1639 | if ( $is_mandatory) { $spanClass .= " mandatoryFieldSpan"; } |
1640 | 1640 | $text = "\n" . Xml::tags( 'span', array( 'class' => $spanClass ), $text ) . "\n"; |
Index: trunk/extensions/SemanticForms/includes/SF_FormPrinter.php |
— | — | @@ -1373,8 +1373,8 @@ |
1374 | 1374 | $page_article = new Article( $this->mPageTitle ); |
1375 | 1375 | $edittime = $page_article->getTimestamp(); |
1376 | 1376 | if ( !$is_query ) { |
1377 | | - $form_text .= "\t" . Html::Hidden( 'wpStarttime', wfTimestampNow() ) . "\n"; |
1378 | | - $form_text .= "\t" . Html::Hidden( 'wpEdittime', $page_article->getTimestamp() ) . "\n"; |
| 1377 | + $form_text .= SFFormUtils::hiddenFieldHTML( 'wpStarttime', wfTimestampNow() ); |
| 1378 | + $form_text .= SFFormUtils::hiddenFieldHTML( 'wpEdittime', $page_article->getTimestamp() ); |
1379 | 1379 | } |
1380 | 1380 | $form_text .= "\t</form>\n"; |
1381 | 1381 | |
Index: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php |
— | — | @@ -209,7 +209,7 @@ |
210 | 210 | $query_component = urldecode( $query_component ); |
211 | 211 | $var_and_val = explode( '=', $query_component ); |
212 | 212 | if ( count( $var_and_val ) == 2 ) { |
213 | | - $hidden_inputs .= Html::Hidden( $var_and_val[0], $var_and_val[1] ) . "\n"; |
| 213 | + $hidden_inputs .= SFFormUtils::hiddenFieldHTML( $var_and_val[0], $var_and_val[1] ); |
214 | 214 | } |
215 | 215 | } |
216 | 216 | } else { |
— | — | @@ -351,12 +351,12 @@ |
352 | 352 | // (i.e., it's in the default URL style), add in the title as a |
353 | 353 | // hidden value |
354 | 354 | if ( ( $pos = strpos( $fs_url, "title=" ) ) > - 1 ) { |
355 | | - $str .= "\t\t\t" . Html::Hidden( "title", urldecode( substr( $fs_url, $pos + 6 ) ) ) . "\n"; |
| 355 | + $str .= SFFormUtils::hiddenFieldHTML( "title", urldecode( substr( $fs_url, $pos + 6 ) ) ); |
356 | 356 | } |
357 | 357 | if ( $inFormName == '' ) { |
358 | 358 | $str .= SFUtils::formDropdownHTML(); |
359 | 359 | } else { |
360 | | - $str .= "\t\t\t" . Html::Hidden( "form", $inFormName ) . "\n"; |
| 360 | + $str .= SFFormUtils::hiddenFieldHTML( "form", $inFormName ); |
361 | 361 | } |
362 | 362 | // Recreate the passed-in query string as a set of hidden |
363 | 363 | // variables. |
Index: trunk/extensions/SemanticForms/includes/SF_Utils.php |
— | — | @@ -233,18 +233,18 @@ |
234 | 234 | <p style="position: absolute; left: 45%; top: 45%;"><img src="$sfgScriptPath/skins/loading.gif" /></p> |
235 | 235 | |
236 | 236 | END; |
237 | | - $form_body = "\t" . Html::hidden( 'wpTextbox1', $page_contents ) . "\n"; |
238 | | - $form_body .= "\t" . Html::hidden( 'wpSummary', $edit_summary ) . "\n"; |
239 | | - $form_body .= "\t" . Html::hidden( 'wpStarttime', $start_time ) . "\n"; |
240 | | - $form_body .= "\t" . Html::hidden( 'wpEdittime', $edit_time ) . "\n"; |
241 | | - $form_body .= "\t" . Html::hidden( 'wpEditToken', $wgUser->isLoggedIn() ? $wgUser->editToken() : EDIT_TOKEN_SUFFIX ) . "\n"; |
242 | | - $form_body .= "\t" . Html::hidden( $action, null ) . "\n"; |
| 237 | + $form_body = SFFormUtils::hiddenFieldHTML( 'wpTextbox1', $page_contents ); |
| 238 | + $form_body .= SFFormUtils::hiddenFieldHTML( 'wpSummary', $edit_summary ); |
| 239 | + $form_body .= SFFormUtils::hiddenFieldHTML( 'wpStarttime', $start_time ); |
| 240 | + $form_body .= SFFormUtils::hiddenFieldHTML( 'wpEdittime', $edit_time ); |
| 241 | + $form_body .= SFFormUtils::hiddenFieldHTML( 'wpEditToken', $wgUser->isLoggedIn() ? $wgUser->editToken() : EDIT_TOKEN_SUFFIX ); |
| 242 | + $form_body .= SFFormUtils::hiddenFieldHTML( $action, null ); |
243 | 243 | |
244 | 244 | if ( $is_minor_edit ) { |
245 | | - $form_body .= "\t" . Html::hidden( 'wpMinoredit' , null ) . "\n"; |
| 245 | + $form_body .= SFFormUtils::hiddenFieldHTML( 'wpMinoredit' , null ); |
246 | 246 | } |
247 | 247 | if ( $watch_this ) { |
248 | | - $form_body .= "\t" . Html::hidden( 'wpWatchthis', null ) . "\n"; |
| 248 | + $form_body .= SFFormUtils::hiddenFieldHTML( 'wpWatchthis', null ); |
249 | 249 | } |
250 | 250 | $text .= Xml::tags( |
251 | 251 | 'form', |