Index: trunk/extensions/SemanticForms/specials/SF_AddData.php |
— | — | @@ -118,7 +118,7 @@ |
119 | 119 | // get 'preload' query value, if it exists |
120 | 120 | if (!$form_submitted && $wgRequest->getCheck('preload')) { |
121 | 121 | $page_is_source = true; |
122 | | - $page_contents = $sfgFormPrinter->getPreloadedText($wgRequest->getVal('preload')); |
| 122 | + $page_contents = SFFormUtils::getPreloadedText($wgRequest->getVal('preload')); |
123 | 123 | } else { |
124 | 124 | $page_is_source = false; |
125 | 125 | $page_contents = null; |
— | — | @@ -130,6 +130,8 @@ |
131 | 131 | // append a namespace, if one was specified |
132 | 132 | if ($wgRequest->getCheck('namespace')) { |
133 | 133 | $target_name = $wgRequest->getVal('namespace') . ':' . $generated_page_name; |
| 134 | + } else { |
| 135 | + $target_name = $generated_page_name; |
134 | 136 | } |
135 | 137 | // replace "unique number" tag with one that |
136 | 138 | // won't get erased by the next line |