Index: trunk/extensions/SemanticForms/specials/SF_RunQuery.php |
— | — | @@ -109,11 +109,15 @@ |
110 | 110 | // Get the full text of the form. |
111 | 111 | $fullFormText = ''; |
112 | 112 | $additionalQueryHeader = ''; |
| 113 | + $dividerText = ''; |
113 | 114 | if ( !$raw ) { |
114 | | - // The "additional query" header - displayed if the form has |
115 | | - // already been submitted. |
| 115 | + // Create the "additional query" header, and the |
| 116 | + // divider text - one of these (depending on whether |
| 117 | + // the query form is at the top or bottom) is displayed |
| 118 | + // if the form has already been submitted. |
116 | 119 | if ( $form_submitted ) { |
117 | 120 | $additionalQueryHeader = "\n" . Xml::element( 'h2', null, wfMsg( 'sf_runquery_additionalquery' ) ) . "\n"; |
| 121 | + $dividerText = "\n<hr style=\"margin: 15px 0;\" />\n"; |
118 | 122 | } |
119 | 123 | $action = htmlspecialchars( $this->getTitle( $form_name )->getLocalURL() ); |
120 | 124 | $fullFormText .= <<<END |
— | — | @@ -129,7 +133,7 @@ |
130 | 134 | // settings - the display is slightly different in each case. |
131 | 135 | if ( $sfgRunQueryFormAtTop ) { |
132 | 136 | $text .= $fullFormText; |
133 | | - $text .= "\n<hr style=\"margin: 15px 0;\" />\n"; |
| 137 | + $text .= $dividerText; |
134 | 138 | $text .= $resultsText; |
135 | 139 | } else { |
136 | 140 | $text .= $resultsText; |