Further tweak for ssl paths in plugin check (sslserver may be set but empty)

This commit is contained in:
Brion Vibber 2011-02-09 00:09:25 -08:00
parent 9efedfc217
commit dc5daa237e
1 changed files with 3 additions and 3 deletions

View File

@ -143,18 +143,18 @@ class Plugin
$server = common_config('plugins', 'server');
}
if (is_null($server)) {
if (empty($server)) {
if ($isHTTPS) {
$server = common_config('site', 'sslserver');
}
if (is_null($server)) {
if (empty($server)) {
$server = common_config('site', 'server');
}
}
$path = common_config('plugins', 'path');
if (is_null($path)) {
if (empty($path)) {
$path = common_config('site', 'path') . '/plugins/';
}