Index: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php |
— | — | @@ -153,15 +153,13 @@ |
154 | 154 | elseif ($param_name == 'query string') |
155 | 155 | $inQueryStr = $value; |
156 | 156 | elseif ($i == 0) |
157 | | - $inFormName = $value; |
| 157 | + $inFormName = $param; |
158 | 158 | elseif ($i == 1) |
159 | | - $inSize = $value; |
| 159 | + $inLinkStr = $param; |
160 | 160 | elseif ($i == 2) |
161 | | - $inLinkStr = $value; |
| 161 | + $inLinkType = $param; |
162 | 162 | elseif ($i == 3) |
163 | | - $inLinkType = $value; |
164 | | - elseif ($i == 4) |
165 | | - $inQueryStr = $value; |
| 163 | + $inQueryStr = $param; |
166 | 164 | } |
167 | 165 | |
168 | 166 | $ad = SpecialPage::getPage('AddData'); |
— | — | @@ -174,6 +172,7 @@ |
175 | 173 | $hidden_inputs = ""; |
176 | 174 | $query_components = explode('&', $inQueryStr); |
177 | 175 | foreach ($query_components as $query_component) { |
| 176 | + $query_component = urldecode($query_component); |
178 | 177 | $var_and_val = explode('=', $query_component); |
179 | 178 | if (count($var_and_val) == 2) { |
180 | 179 | $hidden_inputs .= '<input type="hidden" name="' . $var_and_val[0] . '" value="' . $var_and_val[1] . '" /> '; |
— | — | @@ -234,15 +233,15 @@ |
235 | 234 | $autocompletion_type = 'namespace'; |
236 | 235 | } |
237 | 236 | elseif ($i == 0) |
238 | | - $inFormName = $value; |
| 237 | + $inFormName = $param; |
239 | 238 | elseif ($i == 1) |
240 | | - $inSize = $value; |
| 239 | + $inSize = $param; |
241 | 240 | elseif ($i == 2) |
242 | | - $inValue = $value; |
| 241 | + $inValue = $param; |
243 | 242 | elseif ($i == 3) |
244 | | - $inButtonStr = $value; |
| 243 | + $inButtonStr = $param; |
245 | 244 | elseif ($i == 4) |
246 | | - $inQueryStr = $value; |
| 245 | + $inQueryStr = $param; |
247 | 246 | } |
248 | 247 | |
249 | 248 | $input_num = 1; |