|
@@ 123-129 (lines=7) @@
|
| 120 |
|
* @todo remove version-hack once core 8.1+ is supported |
| 121 |
|
* @return string |
| 122 |
|
*/ |
| 123 |
|
private function getServerProtocol() { |
| 124 |
|
$ocVersion = \OC::$server->getConfig()->getSystemValue('version', '0.0.0'); |
| 125 |
|
if (version_compare($ocVersion, '8.2.0', '<')) { |
| 126 |
|
return Util::getServerProtocol(); |
| 127 |
|
} |
| 128 |
|
return $this->request->getServerProtocol(); |
| 129 |
|
} |
| 130 |
|
|
| 131 |
|
/** |
| 132 |
|
* @todo remove version-hack once core 8.1+ is supported |
|
@@ 135-141 (lines=7) @@
|
| 132 |
|
* @todo remove version-hack once core 8.1+ is supported |
| 133 |
|
* @return string |
| 134 |
|
*/ |
| 135 |
|
private function getServerHost() { |
| 136 |
|
$ocVersion = \OC::$server->getConfig()->getSystemValue('version', '0.0.0'); |
| 137 |
|
if (version_compare($ocVersion, '8.2.0', '<')) { |
| 138 |
|
return Util::getServerHost(); |
| 139 |
|
} |
| 140 |
|
return $this->request->getServerHost(); |
| 141 |
|
} |
| 142 |
|
|
| 143 |
|
} |
| 144 |
|
|