| @@ -46,14 +46,10 @@ | ||
| 46 | 46 | ); |
| 47 | 47 | ?> |
| 48 | 48 | </p> |
| 49 | 49 | <?php else : ?> |
| 50 | - <?php if ( ! class_exists( 'SQLite3' ) ) : ?> | |
| 50 | + <?php if ( ! extension_loaded( 'pdo_sqlite' ) ) : ?> | |
| 51 | 51 | <div class="notice notice-error"> |
| 52 | - <p><?php esc_html_e( 'We detected that the SQLite3 class is missing from your server. Please make sure that SQLite is enabled in your PHP installation before proceeding.', 'sqlite-database-integration' ); ?></p> | |
| 53 | - </div> | |
| 54 | - <?php elseif ( ! extension_loaded( 'pdo_sqlite' ) ) : ?> | |
| 55 | - <div class="notice notice-error"> | |
| 56 | 52 | <p><?php esc_html_e( 'We detected that the PDO SQLite driver is missing from your server (the pdo_sqlite extension is not loaded). Please make sure that SQLite is enabled in your PHP installation before proceeding.', 'sqlite-database-integration' ); ?></p> |
| 57 | 53 | </div> |
| 58 | 54 | <?php elseif ( file_exists( WP_CONTENT_DIR . '/db.php' ) && ! defined( 'SQLITE_DB_DROPIN_VERSION' ) ) : ?> |
| 59 | 55 | <?php if ( defined( 'PERFLAB_SQLITE_DB_DROPIN_VERSION' ) ) : ?> |
| @@ -129,9 +125,10 @@ | ||
| 129 | 125 | function sqlite_plugin_adminbar_item( $admin_bar ) { |
| 130 | 126 | global $wpdb; |
| 131 | 127 | |
| 132 | 128 | if ( defined( 'SQLITE_DB_DROPIN_VERSION' ) && defined( 'DB_ENGINE' ) && 'sqlite' === DB_ENGINE ) { |
| 133 | - $title = '<span style="color:#46B450;">' . __( 'Database: SQLite', 'sqlite-database-integration' ) . '</span>'; | |
| 129 | + $suffix = defined( 'WP_SQLITE_AST_DRIVER' ) && WP_SQLITE_AST_DRIVER ? ' (AST)' : ''; | |
| 130 | + $title = '<span style="color:#46B450;">' . __( 'Database: SQLite', 'sqlite-database-integration' ) . $suffix . '</span>'; | |
| 134 | 131 | } elseif ( stripos( $wpdb->db_server_info(), 'maria' ) !== false ) { |
| 135 | 132 | $title = '<span style="color:#DC3232;">' . __( 'Database: MariaDB', 'sqlite-database-integration' ) . '</span>'; |
| 136 | 133 | } else { |
| 137 | 134 | $title = '<span style="color:#DC3232;">' . __( 'Database: MySQL', 'sqlite-database-integration' ) . '</span>'; |