Skip to content

Commit

Permalink
fix: early return oc10 config.json if accountEditLink defined
Browse files Browse the repository at this point in the history
  • Loading branch information
kulmann committed Jan 23, 2023
1 parent 331d2bb commit 96363f6
Showing 1 changed file with 3 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -134,6 +134,9 @@ private function addOC10AppsToConfig(array $config): array {
*/
private function addAccountEditLinkToConfig(array $config): array {
$options = $config['options'] ?? [];
if ($options['accountEditLink']) {
return $config;
}
$serverUrl = $this->request->getServerProtocol() . '://' . $this->request->getServerHost();
$options['accountEditLink'] = [
'href' => $serverUrl . '/index.php/settings/personal'
Expand Down

0 comments on commit 96363f6

Please sign in to comment.