mirror of
https://github.com/openvk/openvk
synced 2024-12-23 00:51:03 +03:00
Try to guess CDN the protocol if it is set to NULL in config
This commit is contained in:
parent
2c10659003
commit
3d24c1c881
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ abstract class Media extends Postable
|
|||
case "server":
|
||||
$settings = (object) OPENVK_ROOT_CONF["openvk"]["preferences"]["uploads"]["server"];
|
||||
return (
|
||||
$settings->protocol .
|
||||
$settings->protocol ?? ovk_scheme() .
|
||||
"://" . $settings->host .
|
||||
$settings->path .
|
||||
substr($hash, 0, 2) . "/$hash.$this->fileExtension"
|
||||
|
|
Loading…
Reference in a new issue