Index: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php |
— | — | @@ -35,8 +35,6 @@ |
36 | 36 | switch ( $langCode ) { |
37 | 37 | default: |
38 | 38 | $magicWords['forminput'] = array ( 0, 'forminput' ); |
39 | | - // for backward compatibility |
40 | | - $magicWords['sf_forminput'] = array ( 0, 'forminput' ); |
41 | 39 | } |
42 | 40 | return true; |
43 | 41 | } |
— | — | @@ -49,6 +47,12 @@ |
50 | 48 | <p><input type="text" name="page_name" size="$inSize" value="$inValue"> |
51 | 49 | |
52 | 50 | END; |
| 51 | + // if the add page URL looks like "index.php?title=Special:AddPage" |
| 52 | + // (i.e., it's in the default URL style), add in the title as a |
| 53 | + // hidden value |
| 54 | + if (($pos = strpos($ap_url, "title=")) > -1) { |
| 55 | + $str .= ' <input type="hidden" name="title" value="' . substr($ap_url, $pos + 6) . '">' . "\n"; |
| 56 | + } |
53 | 57 | if ($inFormName == '') { |
54 | 58 | $str .= sffFormDropdownHTML(); |
55 | 59 | } else { |