mirror of
https://github.com/openvk/openvk
synced 2024-12-23 09:01:15 +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":
|
case "server":
|
||||||
$settings = (object) OPENVK_ROOT_CONF["openvk"]["preferences"]["uploads"]["server"];
|
$settings = (object) OPENVK_ROOT_CONF["openvk"]["preferences"]["uploads"]["server"];
|
||||||
return (
|
return (
|
||||||
$settings->protocol .
|
$settings->protocol ?? ovk_scheme() .
|
||||||
"://" . $settings->host .
|
"://" . $settings->host .
|
||||||
$settings->path .
|
$settings->path .
|
||||||
substr($hash, 0, 2) . "/$hash.$this->fileExtension"
|
substr($hash, 0, 2) . "/$hash.$this->fileExtension"
|
||||||
|
|
Loading…
Reference in a new issue