kopia lustrzana https://github.com/nextcloud/social
Fix handover of the final address to the frontend
Signed-off-by: Julius Härtl <jus@bitgrid.net>pull/67/head
rodzic
59a9a66914
commit
01d4f83ccb
|
@ -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()
|
||||
|
|
Ładowanie…
Reference in New Issue