- $link = trim($this->conf->get('general.header_link'));
- if ($link[0] === '?') {
- $link = './'. ltrim($link, '?');
-
- $this->conf->set('general.header_link', $link, true, true);
+ if ('?' === trim($this->conf->get('general.header_link'))) {
+ $this->conf->set('general.header_link', $this->basePath . '/', true, true);