@@ -164,7 +164,8 @@ public static function url($url, $host = null) {
164
164
return $ matches ['prefix ' ] .
165
165
$ subdomain . ($ subdomain ? '. ' : '' ) .
166
166
$ domain . ($ tld ? '. ' : '' ) . $ tld .
167
- ($ matches ['path ' ] ?? '' );
167
+ ($ matches ['path ' ] ?? '' ) .
168
+ (V_SUBDIR_INSTALL ? V_SUBDIR_INSTALL : '' );
168
169
}
169
170
170
171
//if host is ip number, localhost or does not have tld remove tld and subdomain
@@ -177,7 +178,8 @@ public static function url($url, $host = null) {
177
178
(! empty ($ matches ['subdomain ' ]) ? $ matches ['subdomain ' ] . '. ' : '' ) .
178
179
($ matches ['domain ' ] ?? '' ) .
179
180
(! empty ($ matches ['tld ' ]) ? '. ' . $ matches ['tld ' ] : '' ) .
180
- ($ matches ['path ' ] ?? '' );
181
+ ($ matches ['path ' ] ?? '' ) .
182
+ (V_SUBDIR_INSTALL ? V_SUBDIR_INSTALL : '' );
181
183
}
182
184
183
185
return $ url ;
@@ -238,8 +240,6 @@ public static function setSiteData($site, $name, $value) {
238
240
} else {
239
241
return self :: setSiteDataByKey ($ site , $ name , $ value );
240
242
}
241
-
242
- return false ;
243
243
}
244
244
245
245
public static function getHost () {
@@ -254,7 +254,7 @@ public static function getSiteData($site_url = false) {
254
254
}
255
255
256
256
if (! $ site_url ) {
257
- $ host =$ _SERVER ['HTTP_HOST ' ] ?? 'localhost ' ;
257
+ $ host = $ _SERVER ['HTTP_HOST ' ] ?? 'localhost ' ;
258
258
}
259
259
260
260
$ host = self :: siteKey ($ host );
0 commit comments