Skip to content

Commit cd7df83

Browse files
committed
set server_php_id in ajax_get_json.php
1 parent bad49e1 commit cd7df83

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

interface/web/sites/ajax_get_json.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,9 +105,9 @@
105105
if(is_array($php_records) && !empty($php_records)) {
106106
foreach( $php_records as $php_record) {
107107
if($php_type == 'php-fpm' || ($php_type == 'hhvm' && $server_type == 'nginx')){
108-
$php_version = $php_record['name'].':'.$php_record['php_fpm_init_script'].':'.$php_record['php_fpm_ini_dir'].':'.$php_record['php_fpm_pool_dir'];
108+
$php_version = $php_version = $php_record['server_php_id'];
109109
} else {
110-
$php_version = $php_record['name'].':'.$php_record['php_fastcgi_binary'].':'.$php_record['php_fastcgi_ini_dir'];
110+
$php_version = $php_version = $php_record['server_php_id'];
111111
}
112112
if($php_record['name'] != $web_config['php_default_name']) {
113113
$json .= '"'.$php_version.'": "'.$php_record['name'].'",';

0 commit comments

Comments
 (0)