| @@ -37,9 +37,9 @@ | ||
| 37 | 37 | return new $formatter_class( $atts ); |
| 38 | 38 | } |
| 39 | 39 | |
| 40 | 40 | /** |
| 41 | - * Create an instance of the FrmEntryShortcodeFormatter class | |
| 41 | + * Create an intsance of the FrmEntryShortcodeFormatter class | |
| 42 | 42 | * |
| 43 | 43 | * @since 2.04 |
| 44 | 44 | * |
| 45 | 45 | * @param int|string $form_id |
| @@ -48,10 +48,12 @@ | ||
| 48 | 48 | * @return FrmEntryShortcodeFormatter|FrmProEntryShortcodeFormatter |
| 49 | 49 | */ |
| 50 | 50 | public static function entry_shortcode_formatter_instance( $form_id, $atts ) { |
| 51 | 51 | if ( FrmAppHelper::pro_is_installed() ) { |
| 52 | - return new FrmProEntryShortcodeFormatter( $form_id, $atts ); | |
| 52 | + $shortcode_formatter = new FrmProEntryShortcodeFormatter( $form_id, $atts ); | |
| 53 | + } else { | |
| 54 | + $shortcode_formatter = new FrmEntryShortcodeFormatter( $form_id, $atts ); | |
| 53 | 55 | } |
| 54 | 56 | |
| 55 | - return new FrmEntryShortcodeFormatter( $form_id, $atts ); | |
| 57 | + return $shortcode_formatter; | |
| 56 | 58 | } |
| 57 | 59 | } |