Skip to content

Commit 2b5c861

Browse files
committed
Install pma directly from zip
Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
1 parent fb5073f commit 2b5c861

2 files changed

Lines changed: 3 additions & 6 deletions

File tree

ee-tools.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,8 @@
88
"version": ""
99
},
1010
"pma": {
11-
"url": "https://github.com/phpmyadmin/phpmyadmin/archive/RELEASE_{version}.zip",
12-
"version": "4.8.2"
11+
"url": "https://www.phpmyadmin.net/downloads/phpMyAdmin-latest-all-languages.zip",
12+
"version": "latest"
1313
},
1414
"pra": {
1515
"url": "https://github.com/erikdubbelboer/phpRedisAdmin/archive/v{version}.zip",

src/Admin_Tools_Command.php

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -311,13 +311,10 @@ private function install_pma( $data, $tool_path ) {
311311

312312
$temp_dir = EE\Utils\get_temp_dir();
313313
$download_path = $temp_dir . 'pma.zip';
314-
$version = str_replace( '.', '_', $data['version'] );
315-
$download_url = str_replace( '{version}', $version, $data['url'] );
316-
$this->download( $download_path, $download_url );
314+
$this->download( $download_path, $data['url'] );
317315
$this->extract_zip( $download_path, $temp_dir );
318316
$this->fs->rename( $temp_dir . 'phpmyadmin-RELEASE_' . $version, $tool_path );
319317
$this->move_config_file( 'pma.config.mustache', $tool_path . '/config.inc.php' );
320-
$this->composer_install( $tool_path );
321318
}
322319

323320
/**

0 commit comments

Comments
 (0)