Fix handover of the final address to the frontend

Signed-off-by: Julius Härtl <jus@bitgrid.net>
pull/67/head
Julius Härtl 2018-11-28 14:22:23 +01:00
rodzic 59a9a66914
commit 01d4f83ccb
Nie znaleziono w bazie danych klucza dla tego podpisu
ID klucza GPG: 4C614C6ED2CDE6DF
1 zmienionych plików z 6 dodań i 5 usunięć

Wyświetl plik

@ -145,15 +145,16 @@ class NavigationController extends Controller {
try {
$data['serverData']['cloudAddress'] = $this->configService->getCloudAddress();
} catch (SocialAppConfigException $e) {
$data['serverData']['cliUrl'] = rtrim(
$this->config->getSystemValue('overwrite.cli.url', ''), "/"
$cloudAddress = rtrim(
$this->config->getSystemValue('overwrite.cli.url', ''), '/'
);
$frontControllerActive = ($this->config->getSystemValue('htaccess.IgnoreFrontController', false) === true || getenv('front_controller_active') === 'true');
if ($data['serverData']['cliUrl']){
if ($cloudAddress !== ''){
if (!$frontControllerActive){
$data['serverData']['cliUrl'] .= '/index.php';
$cloudAddress .= '/index.php';
}
$this->configService->setCloudAddress($data['serverData']['cliUrl']);
$this->configService->setCloudAddress($cloudAddress);
$data['serverData']['cloudAddress'] = $cloudAddress;
} else {
$data['serverData']['setup'] = true;
$data['serverData']['isAdmin'] = \OC::$server->getGroupManager()