Add aliases for default upload processing mode

This commit is contained in:
Jill Stingray 2020-06-16 17:14:05 +03:00
parent bb5c6f2d5b
commit e02e95f648

View file

@ -44,7 +44,9 @@ abstract class Media extends Postable
$hash = $this->getRecord()->hash; $hash = $this->getRecord()->hash;
switch(OPENVK_ROOT_CONF["openvk"]["preferences"]["uploads"]["mode"]) { switch(OPENVK_ROOT_CONF["openvk"]["preferences"]["uploads"]["mode"]) {
default:
case "default": case "default":
case "basic":
return "http://" . $_SERVER['HTTP_HOST'] . "/blob_" . substr($hash, 0, 2) . "/$hash.$this->fileExtension"; return "http://" . $_SERVER['HTTP_HOST'] . "/blob_" . substr($hash, 0, 2) . "/$hash.$this->fileExtension";
break; break;
case "accelerated": case "accelerated":