瀏覽代碼

savedDB

site info support for savedDB
Cristhian Martínez Ochoa 3 年之前
父節點
當前提交
4a9b6961c8
共有 1 個文件被更改,包括 2 次插入2 次删除
  1. 2 2
      lib/sites

+ 2 - 2
lib/sites

@@ -1860,7 +1860,7 @@ site_info_subfolder() {
 	
 	if [[ $typesite == "wp" ]]; then
 		local wph=$(wp_config_read $domain DB_HOST $subfolder)
-		if [[ ${wph,,} == "localhost" || -n $external_db ]]; then
+		if [[ ${wph,,} == "localhost" || -n $external_db || $wph == "$(conf_read external-dbh):$(conf_read external-dbx)" ]]; then
 			local wpmu=$(is_wp_multisite $domain $subfolder)
 			wp_conf_retrieve $domain true true $subfolder
 		else
@@ -1937,7 +1937,7 @@ site_info() {
 	
 	if [[ $typesite == "WordPress" || ( $typesite == "Parked" && $(is_wp $domain) == "true" ) ]]; then
 		local wph=$(wp_config_read $domain DB_HOST)
-		if [[ ${wph,,} == "localhost" || -n $external_db ]]; then
+		if [[ ${wph,,} == "localhost" || -n $external_db || $wph == "$(conf_read external-dbh):$(conf_read external-dbx)" ]]; then
 			local wpmu=$(is_wp_multisite $domain)
 			wp_conf_retrieve $domain true true
 		else