Index: trunk/extensions/SemanticForms/includes/SF_Utils.php |
— | — | @@ -195,7 +195,7 @@ |
196 | 196 | */ |
197 | 197 | public static function generatePages( $psSchemaObj, $toGenPageList ) { |
198 | 198 | global $wgOut, $wgUser; |
199 | | - $template_all = $psSchemaObj->getTemplates(); |
| 199 | + $template_all = $psSchemaObj->getTemplates(); |
200 | 200 | $form_templates = array(); |
201 | 201 | $jobs = array(); |
202 | 202 | foreach ( $template_all as $template ) { |
— | — | @@ -231,11 +231,15 @@ |
232 | 232 | $form_templates[] = $form_template; |
233 | 233 | } |
234 | 234 | $form_name = $psSchemaObj->getFormName(); |
| 235 | + $form_array = $psSchemaObj->getFormArray(); |
235 | 236 | if( $form_name == null ){ |
236 | 237 | return true; |
237 | 238 | } |
238 | | - $form = SFForm::create( $form_name, $form_templates ); |
239 | | - $title = Title::makeTitleSafe( SF_NS_FORM, $form->form_name ); |
| 239 | + $form = SFForm::create( $form_name, $form_templates ); |
| 240 | + $form->setPageNameFormula( $form_array['PageNameFormula'] ); |
| 241 | + $form->setCreateTitle( $form_array['CreateTite'] ); |
| 242 | + $form->setEditTitle( $form_array['EditTitle'] ); |
| 243 | + $title = Title::makeTitleSafe( SF_NS_FORM, $form->mFormName ); |
240 | 244 | $key_title = PageSchemas::titleString( $title ); |
241 | 245 | if( in_array($key_title, $toGenPageList )){ |
242 | 246 | $full_text = $form->createMarkup(); |
— | — | @@ -255,7 +259,7 @@ |
256 | 260 | if ( $tag == "FormInput" ) { |
257 | 261 | $text = ""; |
258 | 262 | $text = PageSchemas::tableMessageRowHTML( "paramAttr", "SemanticForms", (string)$tag ); |
259 | | - foreach ( $child->children() as $prop ) { |
| 263 | + foreach ( $child->children() as $prop ) { |
260 | 264 | if( $prop->getName() == 'InputType' ){ |
261 | 265 | $text .= PageSchemas::tableMessageRowHTML("paramAttrMsg", $prop->getName(), $prop ); |
262 | 266 | }else { |