Index: trunk/extensions/SemanticForms/includes/SF_FormUtils.php |
— | — | @@ -886,11 +886,10 @@ |
887 | 887 | // us with what we need |
888 | 888 | $form_def = "__NOEDITSECTION__" . strtr( $form_def, array( '{{{' => '<nowiki>{{{', '}}}' => '}}}</nowiki>' ) ); |
889 | 889 | |
890 | | - $title = new Title(); |
891 | | - $tmpParser = unserialize( serialize( $parser ) ); // deep clone of parser |
| 890 | + $title = is_object( $parser->getTitle() )?$parser->getTitle():new Title(); |
892 | 891 | |
893 | 892 | // parse wiki-text |
894 | | - $output = $tmpParser->parse( $form_def, $title, $tmpParser->getOptions() ); |
| 893 | + $output = $parser->parse( $form_def, $title, $parser->getOptions() ); |
895 | 894 | $form_def = $output->getText(); |
896 | 895 | |
897 | 896 | // store in cache if allowed |