Index: trunk/extensions/SemanticForms/includes/SF_Utils.php |
— | — | @@ -351,12 +351,12 @@ |
352 | 352 | $params['user_id'] = $wgUser->getId(); |
353 | 353 | $params['page_text'] = $template_text; |
354 | 354 | $jobs[] = new PSCreatePageJob( $title, $params ); |
355 | | - Job::batchInsert( $jobs ); |
356 | 355 | } |
357 | 356 | //Creating Form Templates at this time |
358 | 357 | $form_template = SFTemplateInForm::create( $template->getName(), $template->getLabel(), $template->isMultiple() ); |
359 | 358 | $form_templates[] = $form_template; |
360 | 359 | } |
| 360 | + Job::batchInsert( $jobs ); |
361 | 361 | $form_name = $psSchemaObj->getFormName(); |
362 | 362 | $form_array = $psSchemaObj->getFormArray(); |
363 | 363 | if( $form_name == null ){ |
— | — | @@ -373,7 +373,7 @@ |
374 | 374 | $params = array(); |
375 | 375 | $params['user_id'] = $wgUser->getId(); |
376 | 376 | $params['page_text'] = $full_text; |
377 | | - $jobs[] = new PSCreatePageJob( $title, $params ); |
| 377 | + $jobs = array( new PSCreatePageJob( $title, $params ) ); |
378 | 378 | Job::batchInsert( $jobs ); |
379 | 379 | } |
380 | 380 | return true; |