Fix the link and anchor for the update notifications
Signed-off-by: Joas Schilling <coding@schilljs.com>
This commit is contained in:
parent
fb9379db3e
commit
d50fa1bdb8
|
@ -108,7 +108,7 @@ class Notifier implements INotifier {
|
||||||
$notification->setParsedSubject($l->t('Update to %1$s is available.', [$parameters['version']]));
|
$notification->setParsedSubject($l->t('Update to %1$s is available.', [$parameters['version']]));
|
||||||
|
|
||||||
if ($this->isAdmin()) {
|
if ($this->isAdmin()) {
|
||||||
$notification->setLink($this->url->linkToRouteAbsolute('settings.AdminSettings.index') . '#updater');
|
$notification->setLink($this->url->linkToRouteAbsolute('settings.AdminSettings.index', ['section' => 'overview']) . '#version');
|
||||||
}
|
}
|
||||||
} else {
|
} else {
|
||||||
$appInfo = $this->getAppInfo($notification->getObjectType());
|
$appInfo = $this->getAppInfo($notification->getObjectType());
|
||||||
|
|
|
@ -59,7 +59,7 @@
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="section">
|
<div id="version" class="section">
|
||||||
<!-- should be the last part, so Updater can follow if enabled (it has no heading therefore). -->
|
<!-- should be the last part, so Updater can follow if enabled (it has no heading therefore). -->
|
||||||
<h2><?php p($l->t('Version'));?></h2>
|
<h2><?php p($l->t('Version'));?></h2>
|
||||||
<p><strong><a href="<?php print_unescaped($theme->getBaseUrl()); ?>" rel="noreferrer noopener" target="_blank"><?php p($theme->getTitle()); ?></a> <?php p(OC_Util::getHumanVersion()) ?></strong></p>
|
<p><strong><a href="<?php print_unescaped($theme->getBaseUrl()); ?>" rel="noreferrer noopener" target="_blank"><?php p($theme->getTitle()); ?></a> <?php p(OC_Util::getHumanVersion()) ?></strong></p>
|
||||||
|
|
Loading…
Reference in New Issue