Index: trunk/extensions/SemanticForms/includes/SF_ParserFunctions.php |
— | — | @@ -63,7 +63,7 @@ |
64 | 64 | * 'Has color' around each element in the list, you could call the |
65 | 65 | * following: |
66 | 66 | * |
67 | | - * {{#arraymap:blue;red;yellow|;|x|[[Has color:=x]]|;}} |
| 67 | + * {{#arraymap:blue;red;yellow|;|x|[[Has color::x]]|;}} |
68 | 68 | * |
69 | 69 | * |
70 | 70 | * 'arraymaptemplate' is called as: |
— | — | @@ -110,11 +110,11 @@ |
111 | 111 | function sfRenderFormLink (&$parser, $inFormName = '', $inLinkStr = '', $inLinkType='', $inQueryStr = '') { |
112 | 112 | $ad = SpecialPage::getPage('AddData'); |
113 | 113 | $link_url = $ad->getTitle()->getLocalURL() . "/$inFormName"; |
| 114 | + $link_url = str_replace(' ', '_', $link_url); |
114 | 115 | if ($inQueryStr != '') { |
115 | 116 | $link_url .= (strstr($link_url, '?')) ? '&' : '?'; |
116 | 117 | $link_url .= $inQueryStr; |
117 | 118 | } |
118 | | - $link_url = str_replace(' ', '_', $link_url); |
119 | 119 | if ($inLinkType == 'button') { |
120 | 120 | $str = "<form><input type=\"button\" value=\"$inLinkStr\" onclick=\"window.location.href='$link_url'\"></form>"; |
121 | 121 | } else { |