|
@@ 114-120 (lines=7) @@
|
| 111 |
|
* @todo remove version-hack once core 8.1+ is supported |
| 112 |
|
* @return string |
| 113 |
|
*/ |
| 114 |
|
private function getServerProtocol() { |
| 115 |
|
$ocVersion = \OC::$server->getConfig()->getSystemValue('version', '0.0.0'); |
| 116 |
|
if (version_compare($ocVersion, '8.2.0', '<')) { |
| 117 |
|
return Util::getServerProtocol(); |
| 118 |
|
} |
| 119 |
|
return $this->request->getServerProtocol(); |
| 120 |
|
} |
| 121 |
|
|
| 122 |
|
/** |
| 123 |
|
* @todo remove version-hack once core 8.1+ is supported |
|
@@ 126-132 (lines=7) @@
|
| 123 |
|
* @todo remove version-hack once core 8.1+ is supported |
| 124 |
|
* @return string |
| 125 |
|
*/ |
| 126 |
|
private function getServerHost() { |
| 127 |
|
$ocVersion = \OC::$server->getConfig()->getSystemValue('version', '0.0.0'); |
| 128 |
|
if (version_compare($ocVersion, '8.2.0', '<')) { |
| 129 |
|
return Util::getServerHost(); |
| 130 |
|
} |
| 131 |
|
return $this->request->getServerHost(); |
| 132 |
|
} |
| 133 |
|
|
| 134 |
|
} |
| 135 |
|
|