| @@ -18,11 +18,11 @@ | ||
| 18 | 18 | */ |
| 19 | 19 | class WINP_ImportPage extends WINP_Page { |
| 20 | 20 | |
| 21 | 21 | /** |
| 22 | - * @param Wbcr_Factory432_Plugin $plugin | |
| 22 | + * @param Wbcr_Factory419_Plugin $plugin | |
| 23 | 23 | */ |
| 24 | - public function __construct( Wbcr_Factory432_Plugin $plugin ) { | |
| 24 | + public function __construct( Wbcr_Factory419_Plugin $plugin ) { | |
| 25 | 25 | $this->menu_post_type = WINP_SNIPPETS_POST_TYPE; |
| 26 | 26 | |
| 27 | 27 | $this->id = "import"; |
| 28 | 28 | $this->menu_title = __( 'Import/Export', 'insert-php' ); |
| @@ -77,9 +77,9 @@ | ||
| 77 | 77 | <span class="dashicons dashicons-info"></span><?php echo sprintf( __( 'To import more then one snippet at a time, you need to purchase <a href="%s">Woody snippets PRO</a>', 'insert-php' ), WINP_Plugin::app()->get_support()->get_site_url( true, 'import-page' ) ); ?> |
| 78 | 78 | </p> |
| 79 | 79 | </div> |
| 80 | 80 | <?php |
| 81 | - } else if ( isset( $_POST['wbcr_inp_import_form_action'] ) ) { ?> | |
| 81 | + } else if ( isset( $_POST['wbcr_inp_import_form_saved'] ) ) { ?> | |
| 82 | 82 | <div id="message" class="alert alert-warning"> |
| 83 | 83 | <p><?php _e( 'No files selected!', 'insert-php' ) ?></p> |
| 84 | 84 | </div> |
| 85 | 85 | <?php } |
| @@ -162,9 +162,9 @@ | ||
| 162 | 162 | </fieldset> |
| 163 | 163 | <div class="form-group form-horizontal"> |
| 164 | 164 | <div class="control-group controls col-sm-12"> |
| 165 | 165 | <?php wp_nonce_field( 'wbcr_inp_import_form', 'wbcr_inp_import_form_nonce_field' ); ?> |
| 166 | - <input name="<?php echo 'wbcr_inp_import_form_action' ?>" class="btn btn-primary" type="submit" value="<?php _e( 'Upload files and import', 'insert-php' ) ?>"/> | |
| 166 | + <input name="<?php echo 'wbcr_inp_import_form_saved' ?>" class="btn btn-primary" type="submit" value="<?php _e( 'Upload files and import', 'insert-php' ) ?>"/> | |
| 167 | 167 | </div> |
| 168 | 168 | </div> |
| 169 | 169 | </div> |
| 170 | 170 | <?php else: ?> |