forked from GNUsocial/gnu-social
add path separators for Plugin::path()
This commit is contained in:
parent
2b869fa23f
commit
39c6e34098
@ -162,6 +162,14 @@ class Plugin
|
||||
$path = common_config('site', 'path') . '/plugins/';
|
||||
}
|
||||
|
||||
if ($path[strlen($path)-1] != '/') {
|
||||
$path .= '/';
|
||||
}
|
||||
|
||||
if ($path[0] != '/') {
|
||||
$path = '/'.$path;
|
||||
}
|
||||
|
||||
$protocol = ($isHTTPS) ? 'https' : 'http';
|
||||
|
||||
return $protocol.'://'.$server.$path.$plugin.'/'.$relative;
|
||||
|
Loading…
Reference in New Issue
Block a user