Further tweak for ssl paths in plugin check (sslserver may be set but empty)
This commit is contained in:
parent
9efedfc217
commit
dc5daa237e
@ -143,18 +143,18 @@ class Plugin
|
|||||||
$server = common_config('plugins', 'server');
|
$server = common_config('plugins', 'server');
|
||||||
}
|
}
|
||||||
|
|
||||||
if (is_null($server)) {
|
if (empty($server)) {
|
||||||
if ($isHTTPS) {
|
if ($isHTTPS) {
|
||||||
$server = common_config('site', 'sslserver');
|
$server = common_config('site', 'sslserver');
|
||||||
}
|
}
|
||||||
if (is_null($server)) {
|
if (empty($server)) {
|
||||||
$server = common_config('site', 'server');
|
$server = common_config('site', 'server');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
$path = common_config('plugins', 'path');
|
$path = common_config('plugins', 'path');
|
||||||
|
|
||||||
if (is_null($path)) {
|
if (empty($path)) {
|
||||||
$path = common_config('site', 'path') . '/plugins/';
|
$path = common_config('site', 'path') . '/plugins/';
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user