Changeset View
Changeset View
Standalone View
Standalone View
lib/file_wopi.php
Show First 20 Lines • Show All 231 Lines • ▼ Show 20 Lines | protected function capabilities() | ||||
return $this->apply_aliases_and_exceptions($result); | return $this->apply_aliases_and_exceptions($result); | ||||
} | } | ||||
/** | /** | ||||
* Initializes HTTP request object | * Initializes HTTP request object | ||||
*/ | */ | ||||
protected function http_request() | protected function http_request() | ||||
{ | { | ||||
require_once 'HTTP/Request2.php'; | |||||
$request = new HTTP_Request2(); | $request = new HTTP_Request2(); | ||||
// Configure connection options | // Configure connection options | ||||
$config = $this->rc->config; | $config = $this->rc->config; | ||||
$http_config = (array) $config->get('http_request', $config->get('kolab_http_request')); | $http_config = (array) $config->get('http_request', $config->get('kolab_http_request')); | ||||
// Deprecated config, all options are separated variables | // Deprecated config, all options are separated variables | ||||
if (empty($http_config)) { | if (empty($http_config)) { | ||||
▲ Show 20 Lines • Show All 107 Lines • Show Last 20 Lines |